Skip to content

Commit 6e8277e

Browse files
committed
MC-4526: Convert VerifyConfigurableProductLayeredNavigationTest to MFTF
- Correcting an argument reference in an Action Group. - Replaced "waitForLoadingMaskToDisappear" with "waitForPageLoad".
1 parent 8200acc commit 6e8277e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/StorefrontProductAttributeActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<argument name="categoryName" type="string"/>
1515
<argument name="attributeDefaultLabel" type="string"/>
1616
</arguments>
17-
<amOnPage url="categoryName" stepKey="openCategoryStoreFrontPage"/>
17+
<amOnPage url="{{categoryName}}" stepKey="openCategoryStoreFrontPage"/>
1818
<waitForPageLoad stepKey="waitForCategoryPageToLoad"/>
1919
<seeElement selector="{{StorefrontHeaderSection.NavigationCategoryByName(categoryName)}}" stepKey="seeCategoryInFrontPage"/>
2020
<click selector="{{StorefrontHeaderSection.NavigationCategoryByName(categoryName)}}" stepKey="clickOnCategory"/>
@@ -23,4 +23,4 @@
2323
<click selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(attributeDefaultLabel)}}" stepKey="clickAttributeOptions"/>
2424
<waitForPageLoad stepKey="waitForPageToLoad"/>
2525
</actionGroup>
26-
</actionGroups>
26+
</actionGroups>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8+
89
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
910
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1011
<test name="StorefrontVerifyConfigurableProductLayeredNavigationTest">
@@ -131,7 +132,7 @@
131132
<scrollTo selector="{{AdminProductFormSection.productQuantity}}" stepKey="scrollToProductQuantity"/>
132133
<selectOption selector="{{AdminProductFormSection.productStockStatus}}" userInput="Out of Stock" stepKey="disableProduct"/>
133134
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickOnSaveButton"/>
134-
<waitForLoadingMaskToDisappear stepKey="waitForLoading"/>
135+
<waitForPageLoad stepKey="waitForPageLoad1"/>
135136
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/>
136137

137138
<!--Open Category in Store Front and select product attribute option from sidebar -->
@@ -145,4 +146,4 @@
145146
<see selector="{{StorefrontCategorySidebarSection.filterOption}}" userInput="$$getConfigAttributeOption2.label$$" stepKey="seeOption2"/>
146147
<see selector="{{StorefrontCategorySidebarSection.filterOption}}" userInput="$$getConfigAttributeOption3.label$$" stepKey="seeOption3"/>
147148
</test>
148-
</tests>
149+
</tests>

0 commit comments

Comments
 (0)