|
21 | 21 | </annotations>
|
22 | 22 |
|
23 | 23 | <before>
|
24 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
25 |
| - |
26 | 24 | <!--Create category and product-->
|
27 | 25 | <createData entity="_defaultCategory" stepKey="defaultCategory"/>
|
28 | 26 | <createData entity="SimpleProduct2" stepKey="simpleProduct">
|
29 | 27 | <field key="price">200</field>
|
30 | 28 | <field key="quantity">500</field>
|
31 | 29 | </createData>
|
| 30 | + |
| 31 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
32 | 32 | </before>
|
| 33 | + |
33 | 34 | <after>
|
34 | 35 | <!--Delete created data-->
|
35 | 36 | <deleteData createDataKey="defaultCategory" stepKey="deleteCategory"/>
|
36 | 37 | <deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/>
|
37 | 38 |
|
38 |
| - <actionGroup stepKey="deleteProduct1" ref="deleteProductBySku"> |
| 39 | + <actionGroup ref="deleteProductBySku" stepKey="deleteBundleProduct"> |
39 | 40 | <argument name="sku" value="{{BundleProduct.sku}}"/>
|
40 | 41 | </actionGroup>
|
| 42 | + <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearFilters"/> |
| 43 | + |
41 | 44 | <actionGroup ref="DeleteCartPriceRuleByName" stepKey="deleteCartPriceRule">
|
42 | 45 | <argument name="ruleName" value="{{PriceRuleWithCondition.name}}"/>
|
43 | 46 | </actionGroup>
|
| 47 | + <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearFilters1"/> |
44 | 48 |
|
45 | 49 | <actionGroup ref="logout" stepKey="logout"/>
|
46 | 50 | </after>
|
|
57 | 61 | <pressKey selector="{{AdminProductFormSection.productSku}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::ENTER]" stepKey="enter"/>
|
58 | 62 |
|
59 | 63 | <!--Off dynamic price and set value-->
|
| 64 | + <scrollToTopOfPage stepKey="scrollToTopOfThePageToSeePriceTypeElement"/> |
60 | 65 | <click selector="{{AdminProductFormBundleSection.dynamicPrice}}" stepKey="offDynamicPrice"/>
|
61 | 66 | <fillField selector="{{AdminProductFormBundleSection.priceField}}" userInput="0" stepKey="setProductPrice"/>
|
62 | 67 |
|
63 | 68 | <!-- Add category to product -->
|
64 | 69 | <click selector="{{AdminProductFormBundleSection.categoriesDropDown}}" stepKey="dropDownCategories"/>
|
65 | 70 | <fillField selector="{{AdminProductFormBundleSection.searchForCategory}}" userInput="$$defaultCategory.name$$" stepKey="searchForCategory"/>
|
| 71 | + <waitForElementVisible selector="{{AdminProductFormBundleSection.selectCategory}}" stepKey="waitForElementLoaded"/> |
66 | 72 | <click selector="{{AdminProductFormBundleSection.selectCategory}}" stepKey="selectCategory"/>
|
67 | 73 | <click selector="{{AdminProductFormBundleSection.categoriesLabel}}" stepKey="clickOnCategoriesLabelToCloseOptions"/>
|
68 | 74 |
|
|
92 | 98 | </actionGroup>
|
93 | 99 |
|
94 | 100 | <!--Go to Storefront and add product to cart and checkout from cart-->
|
95 |
| - <amOnPage url="/$$simpleProduct.name$$.html" stepKey="GoToProduct"/> |
| 101 | + <amOnPage url="{{StorefrontProductPage.url($$simpleProduct.custom_attributes[url_key]$$)}}" stepKey="goToProductPage"/> |
96 | 102 | <fillField selector="{{StorefrontProductActionSection.quantity}}" userInput="2" stepKey="setQuantity"/>
|
97 | 103 | <actionGroup ref="StorefrontAddToCartCustomOptionsProductPageActionGroup" stepKey="AddProductToCard">
|
98 | 104 | <argument name="productName" value="$$simpleProduct.name$$"/>
|
|
0 commit comments