Skip to content

Commit 6996d64

Browse files
committed
Improving AssertStorefrontTextOnCmsPageActionGroup
1 parent 6b8304a commit 6996d64

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/code/Magento/Cms/Test/Mftf/ActionGroup/AssertStorefrontTextOnCmsPageActionGroup.xml renamed to app/code/Magento/Cms/Test/Mftf/ActionGroup/AssertStorefrontProductIsShownOnCmsPageActionGroup.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
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="AssertStorefrontTextOnCmsPageActionGroup">
10+
<actionGroup name="AssertStorefrontProductIsShownOnCmsPageActionGroup">
1111
<arguments>
1212
<argument name="cmsTitle" type="string"/>
13-
<argument name="cmsContent" type="string"/>
13+
<argument name="productName" type="string" defaultValue="{{_defaultProduct.name}}"/>
1414
</arguments>
15+
1516
<seeInTitle userInput="{{cmsTitle}}" stepKey="seePageTitle"/>
16-
<see userInput="{{cmsContent}}" stepKey="seePageContent"/>
17+
<see selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="{{productName}}" stepKey="seeProductName"/>
1718
</actionGroup>
1819
</actionGroups>

app/code/Magento/Widget/Test/Mftf/Test/ProductsListWidgetTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
<switchToNextTab stepKey="switchToNextTab"/>
7272
<waitForPageLoad stepKey="waitForCMSPage"/>
7373
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seePageTitle"/>
74-
<actionGroup ref="AssertStorefrontTextOnCmsPageActionGroup" stepKey="seeProduct">
74+
<actionGroup ref="AssertStorefrontProductIsShownOnCmsPageActionGroup" stepKey="seeProduct">
7575
<argument name="cmsTitle" value="{{_newDefaultCmsPage.title}}"/>
76-
<argument name="cmsContent" value="$$createSimpleProduct.name$$"/>
76+
<argument name="productName" value="$$createSimpleProduct.name$$"/>
7777
</actionGroup>
7878
<closeTab stepKey="closeCurrentTab"/>
7979
</test>

0 commit comments

Comments
 (0)