File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,16 @@ The following example shows the usage of `grabValueFrom` in testing, where the r
85
85
<fillField selector =" .functionalTestSelector" userInput =" {$grabStepKey}" stepKey =" fillFieldKey1" />
86
86
```
87
87
88
+ The following is an example of the ` Magento/Catalog/Test/Mftf/ActionGroup/AssertDiscountsPercentageOfProductsActionGroup.xml ` test:
89
+
90
+ ``` xml
91
+ <grabValueFrom selector =" {{AdminProductFormAdvancedPricingSection.productTierPricePercentageValuePriceInput('0')}}" stepKey =" grabProductTierPriceInput" />
92
+ <assertEquals stepKey =" assertProductTierPriceInput" >
93
+ <expectedResult type =" string" >{{amount}}</expectedResult >
94
+ <actualResult type =" string" >$grabProductTierPriceInput</actualResult >
95
+ </assertEquals >
96
+ ```
97
+
88
98
## Hard-coded data input
89
99
90
100
The data to operate against can be included as literals in a test. Hard-coded data input can be useful in assertions.
You can’t perform that action at this time.
0 commit comments