Skip to content

Commit 9e86790

Browse files
committed
B2B-1703: Add MFTF test for MC-38558
- Fixing broken tests
1 parent f3b6d76 commit 9e86790

19 files changed

+35
-35
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<click selector="{{StorefrontHeaderSection.NavigationCategoryByName(SimpleSubCategory.name)}}" stepKey="clickOnCategory"/>
6868
<see selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="seeProductNameInCategoryPage"/>
6969
<!--Verify Product In Store Front-->
70-
<amOnPage url="$$createSimpleProduct.urlKey$$.html" stepKey="goToStorefrontPage"/>
70+
<amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="goToStorefrontPage"/>
7171
<waitForPageLoad stepKey="waitForProductFrontPageToLoad"/>
7272
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="seeProductNameInStoreFront"/>
7373
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="{{SimpleProduct.price}}" stepKey="seeProductPriceInStoreFront"/>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
<waitForPageLoad stepKey="waitForUpdatesTobeSaved1"/>
157157

158158
<!--Go to SimpleProduct store front page-->
159-
<amOnPage url="$$createSimpleProduct.urlKey$$.html" stepKey="goToSimpleProductFrontPage"/>
159+
<amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="goToSimpleProductFrontPage"/>
160160
<waitForPageLoad stepKey="waitForProduct"/>
161161
<see stepKey="seeProductName" userInput="$$createSimpleProduct.sku$$" selector="{{StorefrontProductInfoMainSection.productName}}"/>
162162
<scrollTo stepKey="scrollToTheUpSellHeading" selector="{{StorefrontProductUpSellProductsSection.upSellHeading}}"/>
@@ -167,7 +167,7 @@
167167
<see stepKey="seeConfigProduct" selector="{{StorefrontProductUpSellProductsSection.upSellProducts}}" userInput="$$createConfigProduct.name$$"/>
168168

169169
<!--Go to Config Product store front page-->
170-
<amOnPage url="$$createConfigProduct.urlKey$$.html" stepKey="goToConfigProductFrontPage"/>
170+
<amOnPage url="$$createConfigProduct.custom_attributes[url_key]$$.html" stepKey="goToConfigProductFrontPage"/>
171171
<waitForPageLoad stepKey="waitForConfigProductToBeLoaded"/>
172172
<scrollTo stepKey="scrollToTheUpSellHeading1" selector="{{StorefrontProductUpSellProductsSection.upSellHeading}}"/>
173173

@@ -176,7 +176,7 @@
176176
<see stepKey="seeSimpleProduct2" selector="{{StorefrontProductUpSellProductsSection.upSellProducts}}" userInput="$$createSimpleProduct1.name$$"/>
177177

178178
<!--Go to SimpleProduct1 store front page-->
179-
<amOnPage url="$$createSimpleProduct1.urlKey$$.html" stepKey="goToSimpleProduct1FrontPage"/>
179+
<amOnPage url="$$createSimpleProduct1.custom_attributes[url_key]$$.html" stepKey="goToSimpleProduct1FrontPage"/>
180180
<waitForPageLoad stepKey="waitForSimpleProduct1ToBeLoaded"/>
181181

182182
<!--Verify No Up Sell Products displayed in SimplProduct1 page-->

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
</actionGroup>
9797
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterWidgetCreated"/>
9898
<!-- Navigate to product 3 on store front -->
99-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.urlKey$)}}" stepKey="goToStoreOneProductPageTwo"/>
100-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct3.urlKey$)}}" stepKey="goToStoreOneProductPageThree"/>
99+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.custom_attributes[url_key]$)}}" stepKey="goToStoreOneProductPageTwo"/>
100+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct3.custom_attributes[url_key]$)}}" stepKey="goToStoreOneProductPageThree"/>
101101
<!-- Go to Home Page -->
102102
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnStoreFrontHomePage"/>
103103
<actionGroup ref="AssertSeeProductDetailsOnStorefrontRecentlyViewedWidgetActionGroup" stepKey="assertStoreOneRecentlyViewedProduct2">
@@ -111,8 +111,8 @@
111111
<!-- Switch to second store and add second product (visible on second store) to wishlist -->
112112
<click selector="{{StorefrontFooterSection.switchStoreButton}}" stepKey="clickSwitchStoreButtonOnDefaultStore"/>
113113
<click selector="{{StorefrontFooterSection.storeLink(customStore.name)}}" stepKey="selectCustomStore"/>
114-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct1.urlKey$)}}" stepKey="goToStore2ProductPage1"/>
115-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.urlKey$)}}" stepKey="goToStore2ProductPage2"/>
114+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct1.custom_attributes[url_key]$)}}" stepKey="goToStore2ProductPage1"/>
115+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.custom_attributes[url_key]$)}}" stepKey="goToStore2ProductPage2"/>
116116
<!-- Go to Home Page -->
117117
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage2"/>
118118
<actionGroup ref="AssertSeeProductDetailsOnStorefrontRecentlyViewedWidgetActionGroup" stepKey="assertNextStore1RecentlyViewedProduct1">

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterWidgetCreated"/>
9292

9393
<!-- Navigate to product 3 on store front -->
94-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.urlKey$)}}" stepKey="goToStore1ProductPage2"/>
95-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct3.urlKey$)}}" stepKey="goToStore1ProductPage3"/>
94+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.custom_attributes[url_key]$)}}" stepKey="goToStore1ProductPage2"/>
95+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct3.custom_attributes[url_key]$)}}" stepKey="goToStore1ProductPage3"/>
9696
<!-- Go to Home Page -->
9797
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnHomePage"/>
9898
<actionGroup ref="AssertSeeProductDetailsOnStorefrontRecentlyViewedWidgetActionGroup" stepKey="assertStore1RecentlyViewedProduct2">
@@ -110,8 +110,8 @@
110110
<argument name="storeView" value="customStoreEN"/>
111111
</actionGroup>
112112

113-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct1.urlKey$)}}" stepKey="goToStore2ProductPage1"/>
114-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.urlKey$)}}" stepKey="goToStore2ProductPage2"/>
113+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct1.custom_attributes[url_key]$)}}" stepKey="goToStore2ProductPage1"/>
114+
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct2.custom_attributes[url_key]$)}}" stepKey="goToStore2ProductPage2"/>
115115

116116
<!-- Go to Home Page -->
117117
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnStoreViewHomePage"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</actionGroup>
7070

7171
<!--Go to the product page and check special price-->
72-
<amOnPage url="{{StorefrontProductPage.url($$createProduct.urlKey$$)}}" stepKey="amOnSimpleProductPage"/>
72+
<amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnSimpleProductPage"/>
7373
<waitForPageLoad stepKey="waitForPageLoad"/>
7474
<grabTextFrom selector="{{StorefrontProductInfoMainSection.specialPriceValue}}" stepKey="grabSpecialPrice"/>
7575
<assertEquals stepKey="assertSpecialPrice">

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminDeleteCatalogPriceRuleEntityTest/AdminDeleteCatalogPriceRuleEntityFromSimpleProductTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
6464

6565
<!-- Assert that the rule isn't present on the Category page -->
66-
<amOnPage url="$$createCategory1.urlKey$$.html" stepKey="goToStorefrontCategoryPage1"/>
66+
<amOnPage url="$$createCategory1.custom_attributes[url_key]$$.html" stepKey="goToStorefrontCategoryPage1"/>
6767
<waitForPageLoad stepKey="waitForPageLoad3"/>
6868
<dontSee selector="{{StorefrontCategoryProductSection.ProductCatalogRulePriceTitleByName($$createProduct1.name$$)}}" userInput="Regular Price" stepKey="dontSeeRegularPriceText1"/>
6969
<dontSeeElement selector="{{StorefrontCategoryProductSection.ProductCatalogRuleSpecialPriceTitleByName($$createProduct1.name$$)}}" stepKey="dontSeeSpecialPrice1"/>
7070

7171
<!-- Assert that the rule isn't present on the Product page -->
72-
<amOnPage url="$$createProduct1.urlKey$$.html" stepKey="goToStorefrontProductPage1"/>
72+
<amOnPage url="$$createProduct1.custom_attributes[url_key]$$.html" stepKey="goToStorefrontProductPage1"/>
7373
<waitForPageLoad stepKey="waitForPageLoad4"/>
7474
<dontSee selector="{{StorefrontProductInfoMainSection.oldPriceTag}}" userInput="Regular Price" stepKey="dontSeeRegularPRiceText2"/>
7575
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="$$createProduct1.price$$" stepKey="seeTrueProductPrice1"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</after>
3131

3232
<!--Add product to cart-->
33-
<amOnPage url="$$createProduct.urlKey$$.html" stepKey="navigateToProductPage"/>
33+
<amOnPage url="$$createProduct.custom_attributes[url_key]$$.html" stepKey="navigateToProductPage"/>
3434
<waitForPageLoad stepKey="waitForProductPage"/>
3535
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
3636
<argument name="productName" value="$$createProduct.name$$"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</after>
3131

3232
<!--Add product to cart and checkout-->
33-
<amOnPage url="{{StorefrontProductPage.url($$createProduct.urlKey$$)}}" stepKey="amOnSimpleProductPage"/>
33+
<amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnSimpleProductPage"/>
3434
<waitForPageLoad stepKey="waitForPageLoad"/>
3535
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
3636
<argument name="productName" value="$createProduct.name$$"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/>
5757

5858
<!--Add product to cart-->
59-
<amOnPage url="{{StorefrontProductPage.url($$createProduct.urlKey$$)}}" stepKey="amOnSimpleProductPage"/>
59+
<amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnSimpleProductPage"/>
6060
<waitForPageLoad stepKey="waitForProductPageLoad"/>
6161
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
6262
<argument name="productName" value="$createProduct.name$$"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminProductTypeSwitchingOnEditingTest/AdminConfigurableProductTypeSwitchingToVirtualProductTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<seeElement selector="{{AdminProductGridSection.productRowByTypeAndName('Virtual Product',$createProduct.name$)}}" stepKey="seeVirtualProductInGrid"/>
4444
<!--Assert virtual product on storefront-->
4545
<comment userInput="Assert virtual product on storefront" stepKey="commentAssertVirtualProductOnStorefront"/>
46-
<amOnPage url="{{StorefrontProductPage.url($createProduct.urlKey$)}}" stepKey="openVirtualProductPage"/>
46+
<amOnPage url="{{StorefrontProductPage.url($createProduct.custom_attributes[url_key]$)}}" stepKey="openVirtualProductPage"/>
4747
<waitForPageLoad stepKey="waitForStorefrontVirtualProductPageLoad"/>
4848
<see userInput="IN STOCK" selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="assertVirtualProductInStock"/>
4949
</test>

0 commit comments

Comments
 (0)