Skip to content

Commit dc0c2e6

Browse files
committed
Refactoring the Action Groups
1 parent f587003 commit dc0c2e6

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/AssertTextIsVisibleOnPageActionGroup.xml renamed to app/code/Magento/Checkout/Test/Mftf/ActionGroup/AssertToolbarTextIsVisibleInCartActionGroup.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
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="AssertTextIsVisibleOnPageActionGroup">
10+
<actionGroup name="AssertToolbarTextIsVisibleInCartActionGroup">
1111
<arguments>
1212
<argument name="text" type="string"/>
13-
<argument name="selector" type="string"/>
1413
</arguments>
1514
<waitForPageLoad stepKey="waitForPageLoad"/>
16-
<see userInput="{{text}}" selector="{{selector}}" stepKey="VerifyPageText"/>
15+
<see userInput="{{text}}" selector="{{StorefrontCartToolbarSection.toolbarNumber}}" stepKey="VerifyPageText"/>
1716
</actionGroup>
1817
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCheckPagerShoppingCartWithMoreThan20ProductsTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@
131131
<deleteData createDataKey="simpleProduct21" stepKey="deleteCartItem21"/>
132132
</after>
133133
<actionGroup ref="StorefrontOpenCartPageActionGroup" stepKey="goToCartPage" />
134-
<actionGroup ref="AssertTextIsVisibleOnPageActionGroup" stepKey="VerifyPagerText">
134+
<actionGroup ref="AssertToolbarTextIsVisibleInCartActionGroup" stepKey="VerifyPagerText">
135135
<argument name="text" value="Items 1 to 20 of 21 total"/>
136-
<argument name="selector" value="{{StorefrontCartToolbarSection.toolbarNumber}}"/>
137136
</actionGroup>
138137
<actionGroup ref="StorefrontRemoveCartItemActionGroup" stepKey="removeCartItem" />
139138
<actionGroup ref="AssertPagerTextIsNotVisibleActionGroup" stepKey="VerifyMissingPagerText2" >

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontShoppingCartPagerForOneItemPerPageAnd2ProductsTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@
3737
<deleteData createDataKey="createSimpleProduct2" stepKey="deleteProduct2"/>
3838
</after>
3939
<actionGroup ref="StorefrontOpenCartPageActionGroup" stepKey="goToCartPage" />
40-
<actionGroup ref="AssertTextIsVisibleOnPageActionGroup" stepKey="VerifyPagerTextWithChangedConfiguration">
40+
<actionGroup ref="AssertToolbarTextIsVisibleInCartActionGroup" stepKey="VerifyPagerTextWithChangedConfiguration">
4141
<argument name="text" value="Items 1 to 1 of 2 total"/>
42-
<argument name="selector" value="{{StorefrontCartToolbarSection.toolbarNumber}}"/>
4342
</actionGroup>
4443
</test>
4544
</tests>

0 commit comments

Comments
 (0)