Skip to content

Commit 98fbec4

Browse files
committed
B2B-2117: Prepare AWS Aurora Functional Test CI Build for Handing Off to GL Team
- Fixing flaky tests - Adding indexing after disabling sources
1 parent 648c833 commit 98fbec4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminChangeProductSEOSettingsActionGroup.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
<arguments>
1313
<argument name="productName" defaultValue="_defaultProduct.name"/>
1414
</arguments>
15+
<!--Scroll to element to avoid test order flakiness-->
16+
<waitForElement selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="waitForSection"/>
17+
<executeJS function="return document.evaluate(&quot;{{AdminProductSEOSection.sectionHeader}}&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.getBoundingClientRect().y" stepKey="sectionPosition"/>
18+
<executeJS function="return document.querySelector(&quot;{{AdminHeaderSection.pageMainActions}}&quot;).getBoundingClientRect().height" stepKey="floatingHeaderHeight"/>
19+
<executeJS function="window.scrollTo({top: {$sectionPosition}-{$floatingHeaderHeight}})" stepKey="scrollToSEOTab"/>
1520
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickSearchEngineOptimizationTab"/>
1621
<waitForPageLoad stepKey="waitForTabOpen"/>
1722
<fillField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{productName}}" stepKey="setUrlKeyInput"/>

0 commit comments

Comments
 (0)