Skip to content

Commit 9713cde

Browse files
committed
add new ReloadPageActionGroup
1 parent 1064e35 commit 9713cde

21 files changed

+48
-54
lines changed

app/code/Magento/AdminAnalytics/Test/Mftf/Test/AdminCheckAnalyticsTrackingTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@
2222
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
2323
<argument name="tags" value="config full_page"/>
2424
</actionGroup>
25-
<reloadPage stepKey="pageReload"/>
2625
</before>
2726
<after>
2827
<magentoCLI command="config:set admin/usage/enabled 0" stepKey="disableAdminUsageTracking"/>
2928
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3029
</after>
3130

32-
<waitForPageLoad stepKey="waitForPageReloaded"/>
31+
<actionGroup ref="ReloadPageActionGroup" stepKey="pageReload"/>
3332
<seeInPageSource html="var adminAnalyticsMetadata =" stepKey="seeInPageSource"/>
3433
</test>
3534
</tests>

app/code/Magento/Backend/Test/Mftf/Test/AdminExpireAdminSessionTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<!-- 2. Wait for session to expire. -->
3030
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
3131
<wait time="60" stepKey="waitForSessionLifetime"/>
32-
<reloadPage stepKey="reloadPage"/>
32+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
3333

3434
<!-- 3. Perform asserts. -->
3535
<seeElement selector="{{AdminLoginFormSection.loginBlock}}" stepKey="assertAdminLoginPageIsAvailable"/>

app/code/Magento/Backend/Test/Mftf/Test/AdminExpireCustomerSessionTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<argument name="Customer" value="$$createCustomer$$" />
4141
</actionGroup>
4242
<wait time="60" stepKey="waitForCookieLifetime"/>
43-
<reloadPage stepKey="reloadPage"/>
43+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
4444

4545
<!-- 5. Perform asserts. -->
4646
<seeElement selector="{{StorefrontPanelHeaderSection.customerLoginLink}}" stepKey="assertAuthorizationLinkIsVisibleOnStoreFront"/>

app/code/Magento/Captcha/Test/Mftf/Test/CaptchaFormsDisplayingTest/CaptchaWithDisabledGuestCheckoutTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
<waitForElementVisible selector="{{StorefrontCustomerSignInPopupFormSection.captchaField}}" stepKey="seeCaptchaField"/>
4747
<waitForElementVisible selector="{{StorefrontCustomerSignInPopupFormSection.captchaImg}}" stepKey="seeCaptchaImage"/>
4848
<waitForElementVisible selector="{{StorefrontCustomerSignInPopupFormSection.captchaReload}}" stepKey="seeCaptchaReloadButton"/>
49-
<reloadPage stepKey="refreshPage"/>
50-
<waitForPageLoad stepKey="waitForPageLoad2"/>
49+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
5150
<actionGroup ref="StorefrontClickOnMiniCartActionGroup" stepKey="clickCart2"/>
5251
<click selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="goToCheckout2"/>
5352
<waitForElementVisible selector="{{StorefrontCustomerSignInPopupFormSection.email}}" stepKey="waitEmailFieldVisible2"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<magentoCLI command="cron:run" stepKey="runCron"/>
100100

101101
<!-- 5. Open category A on Storefront again -->
102-
<reloadPage stepKey="reloadCategoryA"/>
102+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadCategoryA"/>
103103

104104
<!-- Category A displays product A1 now -->
105105
<see userInput="$$createCategoryA.name$$" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="seeTitleCategoryA1"/>
@@ -128,7 +128,7 @@
128128
<magentoCLI command="cron:run" stepKey="runCron1"/>
129129

130130
<!-- 9. Open category A on Storefront again -->
131-
<reloadPage stepKey="refreshCategoryAPage"/>
131+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshCategoryAPage"/>
132132

133133
<!-- Category A is empty now -->
134134
<see userInput="$$createCategoryA.name$$" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="seeOnPageCategoryAName"/>

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040

4141
<!-- Assert single row - no hover state -->
4242
<createData entity="ApiCategoryA" stepKey="createFirstCategoryBlank"/>
43-
<reloadPage stepKey="refreshPage"/>
44-
<waitForPageLoad stepKey="waitForBlankSingleRowAppear"/>
43+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
4544
<moveMouseOver selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createFirstCategoryBlank.name$$)}}" stepKey="hoverFirstCategoryBlank"/>
4645
<dontSeeElement selector="{{StorefrontNavigationMenuSection.subItemLevelHover('level0')}}" stepKey="assertNoHoverState"/>
4746

@@ -87,8 +86,7 @@
8786
</createData>
8887

8988
<!-- Several rows. Hover on category without children -->
90-
<reloadPage stepKey="reloadPage"/>
91-
<waitForPageLoad stepKey="waitForBlankSeveralRowsAppear"/>
89+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
9290
<moveMouseOver selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategoryWithoutChildrenBlank.name$$)}}" stepKey="hoverCategoryWithoutChildren"/>
9391
<dontSeeElement selector="{{StorefrontNavigationMenuSection.itemByNameAndLevel($$createCategoryWithoutChildrenBlank.name$$, 'level0')}}" stepKey="dontSeeChildrenInCategory"/>
9492

@@ -167,8 +165,7 @@
167165
<createData entity="ApiCategory" stepKey="createFourthCategoryLuma"/>
168166

169167
<!-- Single row. No hover state -->
170-
<reloadPage stepKey="reload"/>
171-
<waitForPageLoad stepKey="waitForLumaSingleRowAppear"/>
168+
<actionGroup ref="ReloadPageActionGroup" stepKey="reload"/>
172169
<dontSeeElement selector="{{StorefrontNavigationMenuSection.itemByNameAndLevel($$createFirstCategoryLuma.name$$, 'level0')}}" stepKey="noHoverStateInFirstCategory"/>
173170
<dontSeeElement selector="{{StorefrontNavigationMenuSection.itemByNameAndLevel($$createSecondCategoryLuma.name$$, 'level0')}}" stepKey="noHoverStateInSecondCategory"/>
174171
<dontSeeElement selector="{{StorefrontNavigationMenuSection.itemByNameAndLevel($$createThirdCategoryLuma.name$$, 'level0')}}" stepKey="noHoverStateThirdCategory"/>
@@ -203,8 +200,7 @@
203200
<createData entity="ApiCategory" stepKey="createEighthCategoryLuma"/>
204201

205202
<!-- Several rows. Hover on Category without children -->
206-
<reloadPage stepKey="refresh"/>
207-
<waitForPageLoad stepKey="waitForLumaSeveralRowsAppear"/>
203+
<actionGroup ref="ReloadPageActionGroup" stepKey="refresh"/>
208204
<moveMouseOver selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createFifthCategoryLuma.name$$)}}" stepKey="hoverOnCategoryWithoutChildren"/>
209205
<dontSeeElement selector="{{StorefrontNavigationMenuSection.itemByNameAndLevel($$createFifthCategoryLuma.name$$, 'level0')}}" stepKey="dontSeeSubcategoriesInCategory"/>
210206

app/code/Magento/Checkout/Test/Mftf/Test/AddressStateFieldForUKCustomerRemainOptionAfterRefreshTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="guestGoToCheckoutFromMinicart" />
4343
<selectOption stepKey="selectCounty" selector="{{CheckoutShippingSection.country}}" userInput="{{UK_Address.country_id}}"/>
4444
<waitForPageLoad stepKey="waitFormToReload"/>
45-
<reloadPage stepKey="refreshPage"/>
46-
<waitForPageLoad stepKey="waitFormToReload1"/>
45+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
4746
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{CustomerEntityOne.email}}" stepKey="enterEmail"/>
4847
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="enterFirstName"/>
4948
<fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{CustomerEntityOne.lastname}}" stepKey="enterLastName"/>

app/code/Magento/Checkout/Test/Mftf/Test/AdminCheckConfigsChangesIsNotAffectedStartedCheckoutProcessTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@
9090

9191
<!-- Back to the Checkout and refresh the page -->
9292
<switchToPreviousTab stepKey="switchToPreviousTab"/>
93-
<reloadPage stepKey="refreshPage"/>
94-
<waitForPageLoad stepKey="waitPageReload"/>
93+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
9594

9695
<!-- Payment step is opened after refreshing -->
9796
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSection"/>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontGuestCheckoutUsingFreeShippingAndTaxesTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@
172172
<actionGroup ref="CheckoutFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields">
173173
<argument name="address" value="US_Address_NY_Default_Shipping"/>
174174
</actionGroup>
175-
<reloadPage stepKey="reloadThePage"/>
176-
<waitForPageLoad stepKey="waitForPageToReload"/>
175+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadThePage"/>
177176
<waitForText selector="{{CheckoutCartSummarySection.taxAmount}}" userInput="$9.60" time="90" stepKey="waitForTaxAmount"/>
178177

179178
<!--Select Free Shipping and proceed to checkout -->

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontPersistentDataForGuestCustomerWithPhysicalQuoteTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappearAfterFlatRateSelection"/>
5050
<see selector="{{CheckoutCartSummarySection.total}}" userInput="15" stepKey="assertOrderTotalField"/>
5151
<!-- 5. Refresh browser page (F5) -->
52-
<reloadPage stepKey="reloadPage"/>
53-
<waitForPageLoad stepKey="waitForPageLoad"/>
52+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
5453
<actionGroup ref="StorefrontAssertCartEstimateShippingAndTaxActionGroup" stepKey="assertCartEstimateShippingAndTaxAfterPageReload"/>
5554
<actionGroup ref="StorefrontAssertCartShippingMethodSelectedActionGroup" stepKey="assertFlatRateShippingMethodIsChecked">
5655
<argument name="carrierCode" value="flatrate"/>
@@ -71,8 +70,7 @@
7170
<!-- 9. Fill other fields -->
7271
<actionGroup ref="StorefrontFillGuestShippingInfoActionGroup" stepKey="fillOtherFieldsInCheckoutShippingSection"/>
7372
<!-- 10. Refresh browser page(F5) -->
74-
<reloadPage stepKey="reloadCheckoutPage"/>
75-
<waitForPageLoad stepKey="waitForCheckoutPageLoad"/>
73+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadCheckoutPage"/>
7674
<actionGroup ref="StorefrontAssertGuestShippingInfoActionGroup" stepKey="assertGuestShippingPersistedInfoAfterReloadingCheckoutShippingPage"/>
7775
<actionGroup ref="StorefrontAssertCheckoutShippingMethodSelectedActionGroup" stepKey="assertFreeShippingShippingMethodIsChecked">
7876
<argument name="shippingMethod" value="Free Shipping"/>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontUpdatePriceInShoppingCartAfterProductSaveTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
<closeTab stepKey="closeTab"/>
6363

6464
<!--Check price-->
65-
<reloadPage stepKey="reloadPage"/>
66-
<waitForPageLoad stepKey="waitForCheckoutPageReload"/>
65+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
6766
<conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsAreaActive}}" visible="false" stepKey="openItemProductBlock1"/>
6867
<see userInput="$120.00" selector="{{CheckoutPaymentSection.orderSummarySubtotal}}" stepKey="checkSummarySubtotal1"/>
6968
<see userInput="$120.00" selector="{{CheckoutPaymentSection.productItemPriceByName($$createSimpleProduct.name$$)}}" stepKey="checkItemPrice1"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontVisibilityOfDuplicateProductTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
<argument name="attributeType" value="{{colorProductAttribute.input_type}}"/>
6363
<argument name="scope" value="Global"/>
6464
</actionGroup>
65-
<reloadPage stepKey="reloadPage"/>
66-
<waitForPageLoad stepKey="waitForProductPageReload"/>
65+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
6766
<click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurations"/>
6867
<waitForPageLoad stepKey="waitForFilters"/>
6968
<actionGroup ref="CreateOptionsForAttributeActionGroup" stepKey="createOptions">
@@ -142,8 +141,7 @@
142141
<argument name="attributeType" value="{{productAttributeColor.input_type}}"/>
143142
<argument name="scope" value="Global"/>
144143
</actionGroup>
145-
<reloadPage stepKey="reloadDuplicatedProductPage"/>
146-
<waitForPageLoad stepKey="waitForDuplicatedProductReload"/>
144+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadDuplicatedProductPage"/>
147145
<click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="createConfigurationsDuplicatedProduct"/>
148146
<waitForElementVisible selector="{{AdminGridSelectRows.multicheckDropdown}}" stepKey="waitForCreateConfigurationsPageLoad"/>
149147
<click selector="{{AdminGridSelectRows.multicheckDropdown}}" stepKey="openMulticheckDropdown"/>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
4141
<argument name="indices" value=""/>
4242
</actionGroup>
43-
<reloadPage stepKey="reloadPage"/>
44-
<waitForPageLoad stepKey="waitForLoad2"/>
43+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
4544
<click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="openFilter"/>
4645
<fillField userInput="{{CustomerEntityOne.email}}" selector="{{AdminCustomerFiltersSection.emailInput}}" stepKey="filterEmail"/>
4746
<click selector="{{AdminCustomerFiltersSection.apply}}" stepKey="applyFilter"/>

app/code/Magento/PageCache/Test/Mftf/Test/AdminFrontendAreaSessionMustNotAffectAdminAreaTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@
7676

7777
<!-- 5. Open admin tab with page with products. Reload this page twice. -->
7878
<switchToPreviousTab stepKey="switchToPreviousTab"/>
79-
<reloadPage stepKey="reloadAdminCatalogPageFirst"/>
80-
<waitForPageLoad stepKey="waitForReloadFirst"/>
81-
<reloadPage stepKey="reloadAdminCatalogPageSecond"/>
82-
<waitForPageLoad stepKey="waitForReloadSecond"/>
79+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadAdminCatalogPageFirst"/>
80+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadAdminCatalogPageSecond"/>
8381

8482
<seeInTitle userInput="Products / Inventory / Catalog / Magento Admin" stepKey="seeAdminProductsPageTitle"/>
8583
<see userInput="Products" selector="{{AdminHeaderSection.pageTitle}}" stepKey="seeAdminProductsPageHeader"/>

app/code/Magento/Persistent/Test/Mftf/Test/CheckShoppingCartBehaviorAfterSessionExpiredTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
<actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="goToShoppingCartFromMinicart"/>
5656
<!--Reset cookies and refresh the page-->
5757
<resetCookie userInput="PHPSESSID" stepKey="resetCookieForCart"/>
58-
<reloadPage stepKey="reloadPage"/>
59-
<waitForPageLoad stepKey="waitForPageLoad"/>
58+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
6059
<!--Check product exists in cart-->
6160
<see userInput="$$createProduct.name$$" stepKey="ProductExistsInCart"/>
6261
</test>

app/code/Magento/Quote/Test/Mftf/Test/StorefrontGuestCheckoutDisabledProductTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@
124124
<closeTab stepKey="closeTab"/>
125125
<!-- Check cart -->
126126
<wait time="60" stepKey="waitForCartToBeUpdated"/>
127-
<reloadPage stepKey="reloadPage"/>
128-
<waitForPageLoad stepKey="waitForCheckoutPageReload"/>
127+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
129128
<click selector="{{StorefrontMinicartSection.showCart}}" stepKey="clickMiniCart"/>
130129
<dontSeeElement selector="{{StorefrontMinicartSection.quantity}}" stepKey="dontSeeCartItem"/>
131130
<!-- Add simple product to shopping cart -->
@@ -151,8 +150,7 @@
151150
<closeTab stepKey="closeTab2"/>
152151
<!--Check cart-->
153152
<wait time="60" stepKey="waitForCartToBeUpdated2"/>
154-
<reloadPage stepKey="reloadPage2"/>
155-
<waitForPageLoad stepKey="waitForCheckoutPageReload2"/>
153+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage2"/>
156154
<click selector="{{StorefrontMinicartSection.showCart}}" stepKey="clickMiniCart2"/>
157155
<dontSeeElement selector="{{StorefrontMinicartSection.quantity}}" stepKey="dontSeeCartItem2"/>
158156
</test>

app/code/Magento/SalesRule/Test/Mftf/Test/AdminCreateCartPriceRuleForGeneratedCouponTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@
6060
<argument name="consumerName" value="{{AdminCodeGeneratorMessageConsumerData.consumerName}}"/>
6161
<argument name="maxMessages" value="{{AdminCodeGeneratorMessageConsumerData.messageLimit}}"/>
6262
</actionGroup>
63-
<reloadPage stepKey="refreshPage"/>
64-
<waitForPageLoad stepKey="waitFormToReload1"/>
63+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
6564
<click selector="{{AdminCartPriceRulesFormSection.manageCouponCodesHeader}}" stepKey="expandCouponSection2"/>
6665

6766
<!-- Assert coupon codes grid header is correct -->

app/code/Magento/SalesRule/Test/Mftf/Test/StorefrontAutoGeneratedCouponCodeTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@
6464
<argument name="consumerName" value="{{AdminCodeGeneratorMessageConsumerData.consumerName}}"/>
6565
<argument name="maxMessages" value="{{AdminCodeGeneratorMessageConsumerData.messageLimit}}"/>
6666
</actionGroup>
67-
<reloadPage stepKey="refreshPage"/>
68-
<waitForPageLoad stepKey="waitFormToReload1"/>
67+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
6968
<conditionalClick selector="{{AdminCartPriceRulesFormSection.manageCouponCodesHeader}}"
7069
dependentSelector="{{AdminCartPriceRulesFormSection.manageCouponCodesHeader}}" visible="true"
7170
stepKey="clickManageCouponCodes2"/>

app/code/Magento/Swatches/Test/Mftf/Test/AdminDisablingSwatchTooltipsTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@
153153
</actionGroup>
154154

155155
<!-- Verify swatch tooltips are not visible -->
156-
<reloadPage stepKey="refreshPage"/>
157-
<waitForPageLoad stepKey="waitForPageReload"/>
156+
<actionGroup ref="ReloadPageActionGroup" stepKey="refreshPage"/>
158157
<moveMouseOver selector="{{StorefrontProductInfoMainSection.nthSwatchOption('1')}}" stepKey="hoverDisabledSwatch"/>
159158
<wait time="1" stepKey="waitForTooltip2"/>
160159
<dontSeeElement selector="{{StorefrontProductInfoMainSection.swatchOptionTooltip}}" stepKey="swatchTooltipNotVisible"/>

app/code/Magento/Translation/Test/Mftf/Test/StorefrontInlineTranslationOnCheckoutTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
</actionGroup>
121121

122122
<!-- 3. Go to storefront and click on cart button on the top -->
123-
<reloadPage stepKey="reloadPage"/>
124-
<waitForPageLoad stepKey="waitForReload"/>
123+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPage"/>
125124
<actionGroup ref="StorefrontOpenMiniCartActionGroup" stepKey="openMiniCart"/>
126125

127126
<!-- Check button "Proceed to Checkout". There must be red borders and "book" icons on labels that can be translated. -->
@@ -490,8 +489,7 @@
490489
<resetCookie userInput="mage-translation-file-version" stepKey="resetTranslationFileVersion"/>
491490

492491
<!-- Reload page after full clear -->
493-
<reloadPage stepKey="reloadPageAfterFullClean"/>
494-
<waitForPageLoad stepKey="waitForPageLoadAfterFullClean"/>
492+
<actionGroup ref="ReloadPageActionGroup" stepKey="reloadPageAfterFullClean"/>
495493

496494
<!-- Add product to cart and go through Checkout process like you did in steps ##3-6 and check translation you maid. -->
497495
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage1">
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="ReloadPageActionGroup">
12+
<annotations>
13+
<description>Reload page and wait for page load.</description>
14+
</annotations>
15+
16+
<reloadPage stepKey="reloadPage"/>
17+
<waitForPageLoad stepKey="waitForPageLoad"/>
18+
</actionGroup>
19+
</actionGroups>

0 commit comments

Comments
 (0)