Skip to content

Commit 130d7d6

Browse files
committed
SwiftOtter-SOP-348 Yet another fix.
1 parent 1df0e7f commit 130d7d6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
</after>
3535
<!-- Go to category page with `-1` as a Page Number -->
3636
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}?p=-1" stepKey="goToStorefrontCreatedCategoryPage"/>
37-
<!-- Expect redirect to the base URL of category, without any pagination -->
38-
<seeCurrentUrlMatches regex="~{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}$~" stepKey="seeUrlWithNoPage"/>
3937
<!-- Validate that "no products found" error message is not present -->
4038
<actionGroup ref="StorefrontDontSeeNoProductsFoundActionGroup" stepKey="dontSeeNoProdsFoundMessage"/>
4139
<!-- Verify the products are visible on the Category Page -->

app/code/Magento/CatalogSearch/Test/Mftf/Test/CatalogSearchWithNegativeQuantityTest.xml renamed to app/code/Magento/CatalogSearch/Test/Mftf/Test/CatalogSearchWithNegativePageNumberTest.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="CatalogSearchWithNegativeQuantityTest">
11+
<test name="CatalogSearchWithNegativePageNumberTest">
1212
<annotations>
1313
<features value="CatalogSearch"/>
1414
<stories value="Catalog Search Results"/>
@@ -40,9 +40,6 @@
4040
<argument name="pageNumber" value="-1"/>
4141
</actionGroup>
4242

43-
<!-- Expect redirect to the base URL of category, without any pagination -->
44-
<seeCurrentUrlEquals url="{{_ENV.MAGENTO_BASE_URL}}{{StorefrontCatalogSearchPage.url}}?q=simple" stepKey="seeUrlWithNoPage"/>
45-
4643
<!-- Validate that "no products found" error message is not present -->
4744
<actionGroup ref="StorefrontDontSeeNoProductsFoundActionGroup" stepKey="dontSeeNoProdsFoundMessage"/>
4845
<!-- Verify the products are visible on the Category Page -->

0 commit comments

Comments
 (0)