|
53 | 53 | <!--Go to Product edit page-->
|
54 | 54 | <amOnPage url="{{AdminProductEditPage.url($$createSimpleProduct.id$$)}}" stepKey="goToProductEditPage"/>
|
55 | 55 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
56 |
| - <!--Click on attribute dropdown--> |
57 |
| - <click selector="{{AdminProductFormSection.customAttributeDropdownField($$createDropdownProductAttribute.attribute[attribute_code]$$)}}" stepKey="clickOnAttributeDropdown"/> |
| 56 | + |
| 57 | + <!-- Grab attribute dropdown options --> |
| 58 | + <grabMultiple selector="{{AdminProductFormSection.customAttributeSelectOptions($$createDropdownProductAttribute.attribute[attribute_code]$$)}}" stepKey="clickOnAttributeDropdown" /> |
| 59 | + |
58 | 60 | <!--Check attribute dropdown options-->
|
59 |
| - <see selector="{{AdminProductFormSection.customAttributeDropdownField($$createDropdownProductAttribute.attribute[attribute_code]$$)}}" userInput="admin_option_1" stepKey="seeFirstAdminOption"/> |
60 |
| - <see selector="{{AdminProductFormSection.customAttributeDropdownField($$createDropdownProductAttribute.attribute[attribute_code]$$)}}" userInput="admin_option_2" stepKey="seeSecondAdminOption"/> |
61 |
| - <dontSee selector="{{AdminProductFormSection.customAttributeDropdownField($$createDropdownProductAttribute.attribute[attribute_code]$$)}}" userInput="option1" stepKey="dontSeeFirstStoreOption"/> |
62 |
| - <dontSee selector="{{AdminProductFormSection.customAttributeDropdownField($$createDropdownProductAttribute.attribute[attribute_code]$$)}}" userInput="option2" stepKey="dontSeeSecondStoreOption"/> |
| 61 | + <assertContains stepKey="seeFirstAdminOption"> |
| 62 | + <actualResult type="variable">clickOnAttributeDropdown</actualResult> |
| 63 | + <expectedResult type="string">admin_option_1</expectedResult> |
| 64 | + </assertContains> |
| 65 | + <assertContains stepKey="seeSecondAdminOption"> |
| 66 | + <actualResult type="variable">clickOnAttributeDropdown</actualResult> |
| 67 | + <expectedResult type="string">admin_option_2</expectedResult> |
| 68 | + </assertContains> |
| 69 | + |
| 70 | + <assertNotContains stepKey="dontSeeFirstStoreOption"> |
| 71 | + <actualResult type="variable">clickOnAttributeDropdown</actualResult> |
| 72 | + <expectedResult type="string">option1</expectedResult> |
| 73 | + </assertNotContains> |
| 74 | + <assertNotContains stepKey="dontSeeSecondStoreOption"> |
| 75 | + <actualResult type="variable">clickOnAttributeDropdown</actualResult> |
| 76 | + <expectedResult type="string">option2</expectedResult> |
| 77 | + </assertNotContains> |
63 | 78 | </test>
|
64 | 79 | </tests>
|
0 commit comments