Problem/Motivation
As we have plans to continue adding new features and keep things working properly on all Drupal versions supported adding the unit test is a way to achieve this goal.
Proposed resolution
Create a Webbrowser test to access some examples of webforms or forms configured to use the calculation field elements.
Create the following scenarios to be validated.
- Create a unit test to validate the basic math expressions like, +, -, / and *. Something like: :field1 + :field2 * 10. Try to explore alternative scenarios to validate
- Validate these expressions on the webforms and form APIs.
- Also validate the expression with markup elements.
- Create a unit test to validate the admin area, checking the field settings are been validated properly.
- Create a merge request to
developbranch
Remaining tasks
Maybe we gonna add more scenarios to be covered on the unit tests.
Issue fork calculation_fields-3409568
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joaopauloc.dev commentedComment #3
joaopauloc.dev commentedComment #7
joaopauloc.dev commentedComment #8
joaopauloc.dev commented