Skip to content

Commit

Permalink
Refactoring AdminUpdateCustomURLRewritesPermanentTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-kyzyma committed May 25, 2020
1 parent 8d90d12 commit 7bb812a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AssertStorefrontUrlRewriteSuccessOutsideRedirectActionGroup">
<annotations>
<description>Assert redirect to proper URL on the Storefront.</description>
</annotations>
<arguments>
<argument name="target_path" type="string"/>
</arguments>

<seeInCurrentUrl url="{{target_path}}" stepKey="seePropertUrlRewrite"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
</actionGroup>

<!--AssertUrlRewriteSuccessOutsideRedirect-->
<amOnPage url="{{StorefrontHomePage.url}}{{customPermanentUrlRewrite.request_path}}" stepKey="amOnStorefrontPage"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<seeInCurrentUrl url="{{customPermanentUrlRewrite.target_path}}" stepKey="seeAssertUrlRewrite"/>
<actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToTheStoreFront">
<argument name="page" value="{{customPermanentUrlRewrite.request_path}}"/>
</actionGroup>
<actionGroup ref="AssertStorefrontUrlRewriteSuccessOutsideRedirectActionGroup" stepKey="seeAssertUrlRewrite">
<argument name="target_path" value="{{customPermanentUrlRewrite.target_path}}"/>
</actionGroup>
</test>
</tests>

0 comments on commit 7bb812a

Please sign in to comment.