Skip to content

Commit 778a78e

Browse files
committed
ACP2E-1673: fix failing MC-26654 due to MC-26545; adjust AC-7106
1 parent 634bcaa commit 778a78e

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
<!-- Login as admin -->
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2424

25+
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="openProductIndexPageBefore"/>
26+
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetGridBefore"/>
27+
<actionGroup ref="AdminResetColumnDropDownActionGroup" stepKey="ResetColumnDropdownBefore"/>
28+
2529
<!--Create Category-->
2630
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2731

@@ -34,6 +38,10 @@
3438
<argument name="ProductAttribute" value="newProductAttribute"/>
3539
</actionGroup>
3640

41+
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="openProductIndexPageAfter"/>
42+
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetGridAfter"/>
43+
<actionGroup ref="AdminResetColumnDropDownActionGroup" stepKey="ResetColumnDropdownAfter"/>
44+
3745
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3846
</after>
3947

@@ -98,9 +106,6 @@
98106
<!--Click on Go Back button -->
99107
<click selector="{{AdminProductFormActionSection.backButton}}" stepKey="clickBackToGridSimple"/>
100108

101-
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetGrid1"/>
102-
<actionGroup ref="AdminResetColumnDropDownActionGroup" stepKey="ResetColumnDropdown1"/>
103-
104109
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchProductOnProductGridPage">
105110
<argument name="product" value="SimpleProduct"/>
106111
</actionGroup>
@@ -120,9 +125,6 @@
120125
<argument name="value" value="value 1 admin"/>
121126
</actionGroup>
122127

123-
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetGrid2"/>
124-
<actionGroup ref="AdminResetColumnDropDownActionGroup" stepKey="ResetColumnDropdown2"/>
125-
126128
<!--Verify Product Attribute is present in Category Store Front Page -->
127129
<amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="goToStorefrontPage"/>
128130
<waitForPageLoad stepKey="waitForProductFrontPageToLoad"/>

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrdersAndCheckGridsTest.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@
9696
<requiredEntity createDataKey="createGuestCartThree"/>
9797
</updateData>
9898

99-
<wait time="60" stepKey="wait1" />
100-
10199
<magentoCron groups="default" stepKey="runCronFive"/>
102100

103101
<createData entity="CreditMemo" stepKey="refundOrderOne">
@@ -136,20 +134,13 @@
136134

137135
<magentoCron groups="default" stepKey="runCronNine"/>
138136

139-
<wait time="60" stepKey="wait2" />
140-
141137
<magentoCron groups="default" stepKey="runCronTen"/>
142138

143139
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
144140

145141
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="onOrderPage"/>
146-
<waitForPageLoad time="30" stepKey="waitForGrid"/>
147142
<actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearFilters"/>
148143

149-
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="getOrderOneId"/>
150-
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="getOrderTwoId"/>
151-
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="getOrderThreeId"/>
152-
153144
<actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="openOrderOne">
154145
<argument name="entityId" value="$createGuestCartOne.return$"/>
155146
</actionGroup>
@@ -206,24 +197,18 @@
206197
<argument name="orderId" value="{$grabOrderIdOne}"/>
207198
</actionGroup>
208199

209-
<waitForPageLoad time="30" stepKey="waitForGridOne"/>
210-
211200
<see selector="{{AdminDataGridTableSection.gridCell('1', 'Status')}}" userInput="Closed" stepKey="seeOrderClosedInGridOne"/>
212201

213202
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridByIdTwo">
214203
<argument name="orderId" value="{$grabOrderIdTwo}"/>
215204
</actionGroup>
216205

217-
<waitForPageLoad time="30" stepKey="waitForGridTwo"/>
218-
219206
<see selector="{{AdminDataGridTableSection.gridCell('1', 'Status')}}" userInput="Closed" stepKey="seeOrderClosedInGridTwo"/>
220207

221208
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridByIdThree">
222209
<argument name="orderId" value="{$grabOrderIdThree}"/>
223210
</actionGroup>
224211

225-
<waitForPageLoad time="30" stepKey="waitForGridThree"/>
226-
227212
<see selector="{{AdminDataGridTableSection.gridCell('1', 'Status')}}" userInput="Closed" stepKey="seeOrderClosedInGridThree"/>
228213
</test>
229214
</tests>

0 commit comments

Comments
 (0)