|
75 | 75 | </after> |
76 | 76 |
|
77 | 77 | <!--check storefront for both options--> |
78 | | - <amOnPage url="$$createConfigProduct.custom_attributes[url_key]$$.html" stepKey="amOnStorefront1"/> |
79 | | - <waitForPageLoad stepKey="wait1"/> |
80 | | - <see selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option1" stepKey="seeOption1Storefront"/> |
81 | | - <see selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option2" stepKey="seeOption2Storefront"/> |
| 78 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="amOnStorefront1"> |
| 79 | + <argument name="product" value="$createConfigProduct$"/> |
| 80 | + </actionGroup> |
| 81 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="wait1"/> |
| 82 | + <actionGroup ref="AssertStorefrontProductAttributeOptionVisibleActionGroup" stepKey="seeOption1Storefront"> |
| 83 | + <argument name="productAttributeOption" value="option1"/> |
| 84 | + </actionGroup> |
| 85 | + <actionGroup ref="AssertStorefrontProductAttributeOptionVisibleActionGroup" stepKey="seeOption2Storefront"> |
| 86 | + <argument name="productAttributeOption" value="option2"/> |
| 87 | + </actionGroup> |
82 | 88 |
|
83 | 89 | <!--check admin for both options--> |
84 | 90 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
85 | 91 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToEditPage"> |
86 | 92 | <argument name="productId" value="$$createConfigProduct.id$$"/> |
87 | 93 | </actionGroup> |
88 | 94 | <waitForPageLoad stepKey="wait2"/> |
89 | | - <see selector="{{AdminProductFormConfigurationsSection.currentVariationsNameCells}}" userInput="$$createConfigChildProduct1.name$$" stepKey="seeOption1Admin"/> |
90 | | - <see selector="{{AdminProductFormConfigurationsSection.currentVariationsNameCells}}" userInput="$$createConfigChildProduct2.name$$" stepKey="seeOption2Admin"/> |
| 95 | + <actionGroup ref="AssertAdminChildProductDataOnParentProductEditPageActionGroup" stepKey="seeOption1Admin"> |
| 96 | + <argument name="attribute" value="name_container"/> |
| 97 | + <argument name="value" value="$$createConfigChildProduct1.name$$"/> |
| 98 | + </actionGroup> |
| 99 | + <actionGroup ref="AssertAdminChildProductDataOnParentProductEditPageActionGroup" stepKey="seeOption2Admin"> |
| 100 | + <argument name="attribute" value="name_container"/> |
| 101 | + <argument name="value" value="$$createConfigChildProduct2.name$$"/> |
| 102 | + </actionGroup> |
91 | 103 |
|
92 | 104 | <!--remove an option--> |
93 | 105 | <click selector="{{AdminProductFormConfigurationsSection.actionsBtn('1')}}" stepKey="clickToExpandActions"/> |
|
98 | 110 | <dontSee selector="{{AdminProductFormConfigurationsSection.currentVariationsNameCells}}" userInput="$$createConfigChildProduct1.name$$" stepKey="dontSeeOption1Admin"/> |
99 | 111 |
|
100 | 112 | <!--check storefront for one option--> |
101 | | - <amOnPage url="$$createConfigProduct.custom_attributes[url_key]$$.html" stepKey="amOnStorefront2"/> |
102 | | - <waitForPageLoad stepKey="wait4"/> |
| 113 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="amOnStorefront2"> |
| 114 | + <argument name="product" value="$createConfigProduct$"/> |
| 115 | + </actionGroup> |
| 116 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="wait4"/> |
103 | 117 | <dontSee selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option1" stepKey="dontSeeOption1InStorefront"/> |
104 | | - <see selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option2" stepKey="seeOption2Again"/> |
| 118 | + <actionGroup ref="AssertStorefrontProductAttributeOptionVisibleActionGroup" stepKey="seeOption2Again"> |
| 119 | + <argument name="productAttributeOption" value="option2"/> |
| 120 | + </actionGroup> |
105 | 121 | </test> |
106 | 122 | </tests> |
0 commit comments