Skip to content

Commit a2fc099

Browse files
ACQE-6503: AdminCreateVisualSwatchWithNonValidOptionsTest
added waitforclickable action
1 parent c90829b commit a2fc099

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Swatches/Test/Mftf/Test/AdminCreateVisualSwatchWithNonValidOptionsTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
userInput="red" stepKey="fillAdmin1"/>
6969

7070
<!-- Add 2 additional new swatch options -->
71+
<waitForElementClickable selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="waitAddSwatch2ToBeClickable"/>
7172
<click selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="clickAddSwatch2"/>
7273
<actionGroup ref="OpenSwatchMenuByIndexActionGroup" stepKey="clickSwatch2">
7374
<argument name="index" value="1"/>
@@ -80,6 +81,7 @@
8081
<fillField selector="{{AdminManageSwatchSection.adminInputByIndex('1')}}"
8182
userInput="green" stepKey="fillAdmin2"/>
8283

84+
<waitForElementClickable selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="waitAddSwatch3ToBeClickable"/>
8385
<click selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="clickAddSwatch3"/>
8486
<actionGroup ref="OpenSwatchMenuByIndexActionGroup" stepKey="clickSwatch3">
8587
<argument name="index" value="2"/>
@@ -93,6 +95,8 @@
9395
userInput="blue" stepKey="fillAdmin3"/>
9496

9597
<!-- Mark second option as default -->
98+
<scrollTo selector="{{AdminManageSwatchSection.manageSwatchSection}}" stepKey="scrollToManageSwatchSection"/>
99+
<waitForElementClickable selector="{{AdminManageSwatchSection.nthIsDefault('2')}}" stepKey="waitForSetSecondOptionAsDefault"/>
96100
<click selector="{{AdminManageSwatchSection.nthIsDefault('2')}}" stepKey="setSecondOptionAsDefault"/>
97101

98102
<!-- Go to Storefront Properties tab -->

0 commit comments

Comments
 (0)