The 'verify discount' action is used to ensure that a discount is correctly applied to a product or service based on a given discount percentage.
For example, if a product is originally priced at $100 and a 20% discount is applied, the final price should be $80. The "verify discount" action would check that the displayed price after the discount matches the expected price based on the discount percentage provided as a parameter. Refer to adding a parameter section.
Scenario: Verifying a discount on a product
Given the product is priced at $100
When a 20% discount is applied
Then the final price should be $80
Supported UI element is a TextBox.
Adding a Parameter
While adding nodes in the node configuration process, you can parameters.
If you have already created the project, navigate to the Main Canvas and select the appropriate project under Project Explorer pane. Select the required folder to view the appropriate nodes in the Main Canvas and select the required node, associated feature and the UI element to view Control List Panel window as shown.
In this window, you can add the parameters as shown in the following screen and click Save.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article