Skip to content

Commit 662eb5c

Browse files
committed
MFTF Stability control
- adding a wait to make sure UI is interactable
1 parent 6b7778b commit 662eb5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/NavigateToNewOrderPageExistingCustomerActionGroup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
<waitForPageLoad stepKey="waitForCreateOrderPageLoad"/>
3333

3434
<!-- Select store view if appears -->
35+
<!--
36+
Adding wait for 5 seconds to make sure AdminOrderStoreScopeTreeSection.storeForOrder(storeView.name)
37+
renders properly. Unfortunately can not add waitForElement because in some scenarios where this action group
38+
is used the step with Store selection is absent. That is why click is conditional.
39+
-->
40+
<wait time="5" stepKey="wait" />
3541
<conditionalClick selector="{{AdminOrderStoreScopeTreeSection.storeForOrder(storeView.name)}}" dependentSelector="{{AdminOrderStoreScopeTreeSection.storeForOrder(storeView.name)}}" visible="true" stepKey="selectStoreViewIfAppears"/>
3642
<waitForPageLoad stepKey="waitForCreateOrderPageLoadAfterStoreSelect"/>
3743
<see selector="{{AdminHeaderSection.pageTitle}}" userInput="Create New Order" stepKey="seeNewOrderPageTitle"/>

0 commit comments

Comments
 (0)