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 develop branch

Remaining tasks

Maybe we gonna add more scenarios to be covered on the unit tests.

Command icon 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

joaopauloc.dev created an issue. See original summary.

joaopauloc.dev’s picture

Issue summary: View changes
joaopauloc.dev’s picture

Issue summary: View changes

Pinesso made their first commit to this issue’s fork.

joaopauloc.dev’s picture

Status: Active » Fixed
joaopauloc.dev’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.