Skip to content

Commit 20da03a

Browse files
committed
B2B-1967: [AWS Aurora] [MFTF]: Investigate CE Build Test Failures
- Fixing flaky tests
1 parent 4682784 commit 20da03a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/SaveProductWithCustomOptionsSecondWebsiteTest.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<fillField selector="{{AdminProductCustomizableOptionsSection.fillOptionValueTitle('Radio Option', '2')}}" userInput="option 3" stepKey="fillOptionValueTitle3"/>
7979
<fillField selector="{{AdminProductCustomizableOptionsSection.fillOptionValuePrice('Radio Option', '2')}}" userInput="7" stepKey="fillOptionValuePrice3"/>
8080

81-
<!--Save the product with custom options -->
81+
<!-- Save the product with custom options -->
8282
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveButton"/>
8383
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeProductSavedMessage"/>
8484

@@ -89,6 +89,11 @@
8989
<waitForLoadingMaskToDisappear stepKey="waitForProductPagetoSaveAgain"/>
9090
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessageAgain"/>
9191

92+
<!-- Verify the product's custom options -->
93+
<waitForElement selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="waitForSection"/>
94+
<executeJS function="return document.evaluate(&quot;{{AdminProductCustomizableOptionsSection.customizableOptions}}&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.getBoundingClientRect().y" stepKey="sectionPosition"/>
95+
<executeJS function="return document.querySelector(&quot;{{AdminHeaderSection.pageMainActions}}&quot;).getBoundingClientRect().height" stepKey="floatingHeaderHeight"/>
96+
<executeJS function="window.scrollTo({top: {$sectionPosition}-{$floatingHeaderHeight}})" stepKey="scrollToSection"/>
9297
<click selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="openCustomOptionsSection2"/>
9398
<seeNumberOfElements selector=".admin__dynamic-rows[data-index='values'] tr.data-row" userInput="3" stepKey="see4RowsOfOptions"/>
9499
</test>

app/code/Magento/Customer/Test/Mftf/Test/AdminResetCustomerPasswordTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
</annotations>
2020
<before>
2121
<createData entity="Simple_US_Customer" stepKey="customer"/>
22+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
23+
<argument name="indices" value="customer_grid"/>
24+
</actionGroup>
2225
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2326
</before>
2427
<after>

0 commit comments

Comments
 (0)