Skip to content

Commit 0de77c8

Browse files
committed
Apply review notes
1 parent 7630cb0 commit 0de77c8

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AssertStorefrontCategoryCurrentPageIsFirstActionGroup">
10+
<actionGroup name="AssertStorefrontCategoryCurrentPageIsNthActionGroup">
11+
<arguments>
12+
<argument name="expectedPage" type="string"/>
13+
</arguments>
14+
1115
<grabTextFrom selector="{{StorefrontCategoryBottomToolbarSection.currentPage}}" stepKey="currentPageText"/>
12-
<assertEquals stepKey="assertIsPageFirst">
13-
<expectedResult type="string">1</expectedResult>
16+
<assertEquals stepKey="assertIsPageNth">
17+
<expectedResult type="string">{{expectedPage}}</expectedResult>
1418
<actualResult type="variable">currentPageText</actualResult>
1519
</assertEquals>
1620
</actionGroup>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateCategoryNextPageActionGroup.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
-->
77

88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
9-
<!-- Navigates storefront category next page from toolbar -->
109
<actionGroup name="StorefrontNavigateCategoryNextPageActionGroup">
10+
<annotations>
11+
<description>Navigates storefront category next page from toolbar</description>
12+
</annotations>
1113
<scrollTo selector="{{StorefrontCategoryBottomToolbarSection.nextPage}}" stepKey="scrollToNextButton"/>
1214
<click selector="{{StorefrontCategoryBottomToolbarSection.nextPage}}" stepKey="clickOnNextPage"/>
1315
<waitForPageLoad stepKey="waitForNextCategoryPageLoad"/>

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<actionGroup ref="AddTextSwatchToProductActionGroup" stepKey="addSwatchAttribute">
3838
<argument name="usedInLayeredNavigation" value="1"/>
3939
</actionGroup>
40-
<magentoCLI command="cache:clean block_html collections config full_page" stepKey="cleanInvalidatedCaches"/>
4140
</before>
4241

4342
<after>
@@ -48,7 +47,7 @@
4847

4948
<magentoCLI command="config:set catalog/frontend/grid_per_page 12" stepKey="setDefaultProductsPerPage"/>
5049
<magentoCLI command="config:set catalog/frontend/grid_per_page_values 12,24,36" stepKey="setDefaultGridPerPage"/>
51-
<magentoCLI command="cache:clean block_html collections config full_page" stepKey="cleanInvalidatedCaches"/>
50+
<magentoCLI command="cache:clean config full_page" stepKey="cleanInvalidatedCaches"/>
5251

5352
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
5453
<deleteData createDataKey="createSimpleProduct1" stepKey="deleteSimpleProduct1"/>
@@ -97,6 +96,8 @@
9796
<click selector="{{StorefrontCategorySidebarSection.attributeNthOption(textSwatchAttribute.attribute_code, '1')}}" stepKey="filterBySwatch1"/>
9897
<waitForPageLoad stepKey="waitForPageToLoad2"/>
9998

100-
<actionGroup ref="AssertStorefrontCategoryCurrentPageIsFirstActionGroup" stepKey="assertCurrentPageIsFirst"/>
99+
<actionGroup ref="AssertStorefrontCategoryCurrentPageIsNthActionGroup" stepKey="assertCurrentPageIsFirst">
100+
<argument name="expectedPage" value="1"/>
101+
</actionGroup>
101102
</test>
102103
</tests>

0 commit comments

Comments
 (0)