|
68 | 68 | <seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Configurable Product',$createProduct.name$)}}" stepKey="seeConfigurableProductInGrid"/>
|
69 | 69 | <seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Simple Product',$createProduct.name$-option1)}}" stepKey="seeSimpleProduct1NameInGrid"/>
|
70 | 70 | <seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Simple Product',$createProduct.name$-option2)}}" stepKey="seeSimpleProduct2NameInGrid"/>
|
| 71 | + |
71 | 72 | <!--Assert configurable product on storefront-->
|
72 | 73 | <comment userInput="Assert configurable product on storefront" stepKey="commentAssertConfigProductOnStorefront"/>
|
73 |
| - <amOnPage url="{{StorefrontProductPage.url($createProduct.name$)}}" stepKey="openProductPage"/> |
74 |
| - <waitForPageLoad stepKey="waitForStorefrontProductPageLoad"/> |
75 |
| - <see userInput="IN STOCK" selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="assertInStock"/> |
76 |
| - <click selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="clickAttributeDropDown"/> |
77 |
| - <see userInput="option1" stepKey="verifyOption1Exists"/> |
78 |
| - <see userInput="option2" stepKey="verifyOption2Exists"/> |
| 74 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage"> |
| 75 | + <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
| 76 | + </actionGroup> |
| 77 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStorefrontProductPageLoad"/> |
| 78 | + <actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="assertInStock"> |
| 79 | + <argument name="productStockStatus" value="In Stock"/> |
| 80 | + </actionGroup> |
| 81 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAttributeDropDown"/> |
| 82 | + <actionGroup ref="AssertStorefrontProductAttributeOptionVisibleActionGroup" stepKey="verifyOption1Exists"> |
| 83 | + <argument name="productAttributeOption" value="option1"/> |
| 84 | + </actionGroup> |
| 85 | + <actionGroup ref="AssertStorefrontProductAttributeOptionVisibleActionGroup" stepKey="verifyOption2Exists"> |
| 86 | + <argument name="productAttributeOption" value="option2"/> |
| 87 | + </actionGroup> |
| 88 | + |
79 | 89 | </test>
|
80 | 90 | </tests>
|
0 commit comments