|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 | 22 | <magentoCLI command="config:set customer/create_account/vat_frontend_visibility 1" stepKey="showVatNumberOnStorefrontYes"/>
|
23 |
| - <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheBefore"> |
24 |
| - <argument name="tags" value="config"/> |
25 |
| - </actionGroup> |
26 |
| - <createData stepKey="category" entity="SimpleSubCategory"/> |
27 |
| - <createData stepKey="product1" entity="SimpleProduct"> |
| 23 | + <createData entity="SimpleSubCategory" stepKey="category"/> |
| 24 | + <createData entity="SimpleProduct" stepKey="product"> |
28 | 25 | <requiredEntity createDataKey="category"/>
|
29 | 26 | </createData>
|
30 | 27 | </before>
|
| 28 | + <after> |
| 29 | + <magentoCLI command="config:set customer/create_account/vat_frontend_visibility 0" stepKey="showVatNumberOnStorefrontNo"/> |
| 30 | + <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfter"> |
| 31 | + <argument name="tags" value="config"/> |
| 32 | + </actionGroup> |
| 33 | + <deleteData createDataKey="category" stepKey="deleteCategory"/> |
| 34 | + <deleteData createDataKey="product" stepKey="deleteproduct"/> |
| 35 | + </after> |
31 | 36 | <!-- Add product to the cart -->
|
32 |
| - <amOnPage url="$$product1.name$$.html" stepKey="goToProductPage"/> |
| 37 | + <amOnPage url="$$product.name$$.html" stepKey="goToProductPage"/> |
33 | 38 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addProductToCart">
|
34 |
| - <argument name="productName" value="$$product1.name$$"/> |
| 39 | + <argument name="productName" value="$$product.name$$"/> |
35 | 40 | </actionGroup>
|
36 | 41 | <!-- Check Out with Multiple Addresses -->
|
37 | 42 | <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openCart"/>
|
|
43 | 48 | <waitForPageLoad stepKey="waitForCreateAccountPageToLoad"/>
|
44 | 49 | <!--Check the VAT Number field-->
|
45 | 50 | <seeElement selector="{{StorefrontCustomerAddressSection.vatId}}" stepKey="assertVatIdField"/>
|
46 |
| - <after> |
47 |
| - <magentoCLI command="config:set customer/create_account/vat_frontend_visibility 0" stepKey="showVatNumberOnStorefrontNo"/> |
48 |
| - <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfter"> |
49 |
| - <argument name="tags" value="config"/> |
50 |
| - </actionGroup> |
51 |
| - <deleteData stepKey="deleteCategory" createDataKey="category"/> |
52 |
| - <deleteData stepKey="deleteProduct1" createDataKey="product1"/> |
53 |
| - </after> |
54 | 51 | </test>
|
55 | 52 | </tests>
|
0 commit comments