Skip to content

Commit 1df0e7f

Browse files
committed
SwiftOtter-SOP-348 Replace variable with hardcoded URL in MFTF regex
1 parent e648878 commit 1df0e7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/Test/CatalogSearchWithNegativeQuantityTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
<argument name="pageNumber" value="-1"/>
4141
</actionGroup>
4242

43-
<seeCurrentUrlMatches regex="~\/catalogsearch\/result\/?q=simple$~" stepKey="seeUrlWithNoPage"/>
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+
4446
<!-- Validate that "no products found" error message is not present -->
4547
<actionGroup ref="StorefrontDontSeeNoProductsFoundActionGroup" stepKey="dontSeeNoProdsFoundMessage"/>
4648
<!-- Verify the products are visible on the Category Page -->

0 commit comments

Comments
 (0)