|
32 | 32 | <createData entity="productAttributeOption2" stepKey="createConfigProductAttributeOptionTwo">
|
33 | 33 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
34 | 34 | </createData>
|
| 35 | + <!-- Reindex invalidated indices after product attribute has been created/deleted --> |
| 36 | + <magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> |
35 | 37 | </before>
|
36 | 38 | <after>
|
37 | 39 | <!--Delete product-->
|
38 | 40 | <comment userInput="Delete product" stepKey="commentDeleteProduct"/>
|
39 | 41 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
40 | 42 | <deleteData createDataKey="createConfigProductAttribute" stepKey="deleteAttribute"/>
|
41 | 43 | <actionGroup ref="DeleteAllDuplicateProductUsingProductGridActionGroup" stepKey="deleteAllDuplicateProducts">
|
42 |
| - <argument name="product" value="$$createProduct$$"/> |
| 44 | + <argument name="product" value="$createProduct$"/> |
43 | 45 | </actionGroup>
|
44 | 46 | <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductFilters"/>
|
45 | 47 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
|
50 | 52 | <!--Add configurations to product-->
|
51 | 53 | <comment userInput="Add configurations to product" stepKey="commentAddConfigs"/>
|
52 | 54 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="gotToSimpleProductPage">
|
53 |
| - <argument name="productId" value="$$createProduct.id$$"/> |
| 55 | + <argument name="productId" value="$createProduct.id$"/> |
54 | 56 | </actionGroup>
|
55 | 57 | <waitForPageLoad stepKey="waitForSimpleProductPageLoad"/>
|
56 | 58 | <actionGroup ref="GenerateConfigurationsByAttributeCodeActionGroup" stepKey="setupConfigurations">
|
57 |
| - <argument name="attributeCode" value="$$createConfigProductAttribute.attribute_code$$"/> |
| 59 | + <argument name="attributeCode" value="$createConfigProductAttribute.attribute_code$"/> |
58 | 60 | </actionGroup>
|
59 | 61 | <actionGroup ref="SaveConfiguredProductActionGroup" stepKey="saveConfigProductForm"/>
|
60 | 62 | <!--Assert configurable product on Admin product page grid-->
|
61 | 63 | <comment userInput="Assert configurable product in Admin product page grid" stepKey="commentAssertConfigProductOnAdmin"/>
|
62 | 64 | <amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="goToCatalogProductPage"/>
|
63 | 65 | <actionGroup ref="FilterProductGridBySku2ActionGroup" stepKey="filterProductGridBySku">
|
64 |
| - <argument name="sku" value="$$createProduct.sku$$"/> |
| 66 | + <argument name="sku" value="$createProduct.sku$"/> |
65 | 67 | </actionGroup>
|
66 |
| - <see selector="{{AdminProductGridSection.productGridCell('1', 'Name')}}" userInput="$$createProduct.name$$" stepKey="seeProductNameInGrid"/> |
67 |
| - <see selector="{{AdminProductGridSection.productGridCell('1', 'Type')}}" userInput="Configurable Product" stepKey="seeProductTypeInGrid"/> |
68 |
| - <see selector="{{AdminProductGridSection.productGridCell('2', 'Name')}}" userInput="$$createProduct.name$$-option1" stepKey="seeProductNameInGrid1"/> |
69 |
| - <see selector="{{AdminProductGridSection.productGridCell('3', 'Name')}}" userInput="$$createProduct.name$$-option2" stepKey="seeProductNameInGrid2"/> |
70 |
| - <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductFilters"/> |
| 68 | + <seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Configurable Product',$createProduct.name$)}}" stepKey="seeConfigurableProductInGrid"/> |
| 69 | + <seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Simple Product',$createProduct.name$-option1)}}" stepKey="seeSimpleProduct1NameInGrid"/> |
| 70 | + <seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Simple Product',$createProduct.name$-option2)}}" stepKey="seeSimpleProduct2NameInGrid"/> |
71 | 71 | <!--Assert configurable product on storefront-->
|
72 | 72 | <comment userInput="Assert configurable product on storefront" stepKey="commentAssertConfigProductOnStorefront"/>
|
73 |
| - <amOnPage url="{{StorefrontProductPage.url($$createProduct.name$$)}}" stepKey="openProductPage"/> |
| 73 | + <amOnPage url="{{StorefrontProductPage.url($createProduct.name$)}}" stepKey="openProductPage"/> |
74 | 74 | <waitForPageLoad stepKey="waitForStorefrontProductPageLoad"/>
|
75 | 75 | <see userInput="IN STOCK" selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="assertInStock"/>
|
76 | 76 | <click selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="clickAttributeDropDown"/>
|
|
0 commit comments