Skip to content

Commit 5040aae

Browse files
committed
MAGETWO-91377: Create MFTF Tests
- updated tabs action group for flaky test
1 parent 5ab61c4 commit 5040aae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/TabsActionGroup.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</arguments>
4646
<waitForElementVisible time="10" selector="{{TabOnStage.tabHeader(index)}}" stepKey="waitForContentTypeInStageVisible" />
4747
<click stepKey="clickTabTitle" selector="{{TabOnStage.tabHeader(index)}}"/>
48-
<waitForElementVisible selector="{{TabOnStage.tabOptionsEdit}}" stepKey="seeTabOptionsEdit"/>
48+
<waitForElementVisible time="30" selector="{{TabOnStage.tabOptionsEdit}}" stepKey="seeTabOptionsEdit"/>
4949
<click selector="{{TabOnStage.tabOptionsDuplicate}}" stepKey="clickEditContentType"/>
5050
</actionGroup>
5151
<actionGroup name="openTabOptionsByIndex">
@@ -68,7 +68,7 @@
6868
</arguments>
6969
<click selector="{{TabOnStage.tabHeader(to)}}" stepKey="switchToTab"/>
7070
<waitForPageLoad stepKey="waitForTabChangeAnimation" time="30"/>
71-
<waitForElementVisible selector="{{TabOnStage.tabHeaderItemActive(to)}}" stepKey="seeNewTabActive"/>
71+
<waitForElementVisible time="30" selector="{{TabOnStage.tabHeaderItemActive(to)}}" stepKey="seeNewTabActive"/>
7272
<assertElementContainsAttribute selector="{{TabOnStage.tabPanel(from)}}" attribute="aria-hidden" expectedValue="true" stepKey="assertOldTabHidden"/>
7373
<assertElementContainsAttribute selector="{{TabOnStage.tabPanel(to)}}" attribute="aria-hidden" expectedValue="false" stepKey="assertNewTabVisible"/>
7474
</actionGroup>
@@ -77,12 +77,13 @@
7777
<argument name="from" defaultValue="1" type="string"/>
7878
<argument name="to" defaultValue="2" type="string"/>
7979
</arguments>
80+
<!-- requires reloadPage before for tabs to become active, see MAGETWO-92406 -->
8081
<click selector="{{TabOnStorefront.tabHeader(to)}}" stepKey="switchToTab"/>
8182
<waitForPageLoad stepKey="waitForTabChangeAnimationStorefront1" time="30"/>
8283
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
83-
<wait time="1" stepKey="waitForTabRender"/>
84+
<wait time="2" stepKey="waitForTabRender"/>
8485
<waitForPageLoad stepKey="waitForTabChangeAnimationStorefront2" time="30"/>
85-
<waitForElementVisible selector="{{TabOnStorefront.tabHeaderItemActive(to)}}" stepKey="seeNewTabActive"/>
86+
<waitForElementVisible time="30" selector="{{TabOnStorefront.tabHeaderItemActive(to)}}" stepKey="seeNewTabActive"/>
8687
<assertElementContainsAttribute selector="{{TabOnStorefront.tabContent(from)}}" attribute="aria-hidden" expectedValue="true" stepKey="assertOldTabHidden"/>
8788
<assertElementContainsAttribute selector="{{TabOnStorefront.tabContent(to)}}" attribute="aria-hidden" expectedValue="false" stepKey="assertNewTabVisible"/>
8889
</actionGroup>

0 commit comments

Comments
 (0)