Skip to content

Commit f6cff24

Browse files
committed
MC-33699: Stabilize MFTF tests
1 parent f92ee24 commit f6cff24

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

app/code/Magento/Swatches/Test/Mftf/Test/AdminCreateImageSwatchTest.xml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,20 @@
8989

9090
<!-- Verify after round trip to the server -->
9191
<grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch('1')}}" userInput="style" stepKey="grabSwatch1"/>
92-
<assertContains stepKey="assertSwatch1">
92+
<assertStringContainsString stepKey="assertSwatch1">
9393
<expectedResult type="string">adobe-thumb</expectedResult>
9494
<actualResult type="string">{$grabSwatch1}</actualResult>
95-
</assertContains>
95+
</assertStringContainsString>
9696
<grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch('2')}}" userInput="style" stepKey="grabSwatch2"/>
97-
<assertContains stepKey="assertSwatch2">
97+
<assertStringContainsString stepKey="assertSwatch2">
9898
<expectedResult type="string">adobe-small</expectedResult>
9999
<actualResult type="string">{$grabSwatch2}</actualResult>
100-
</assertContains>
100+
</assertStringContainsString>
101101
<grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch('3')}}" userInput="style" stepKey="grabSwatch3"/>
102-
<assertContains stepKey="assertSwatch3">
102+
<assertStringContainsString stepKey="assertSwatch3">
103103
<expectedResult type="string">adobe-base</expectedResult>
104104
<actualResult type="string">{$grabSwatch3}</actualResult>
105-
</assertContains>
105+
</assertStringContainsString>
106106

107107
<!-- Create a configurable product to verify the storefront with -->
108108
<amOnPage url="{{AdminProductCreatePage.url(BaseConfigurableProduct.attribute_set_id, BaseConfigurableProduct.type_id)}}" stepKey="goToCreateConfigurableProduct"/>
@@ -133,40 +133,40 @@
133133

134134
<!-- Verify the storefront -->
135135
<grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('1')}}" userInput="style" stepKey="grabSwatch4"/>
136-
<assertContains stepKey="assertSwatch4">
136+
<assertStringContainsString stepKey="assertSwatch4">
137137
<expectedResult type="string">adobe-thumb</expectedResult>
138138
<actualResult type="string">{$grabSwatch4}</actualResult>
139-
</assertContains>
139+
</assertStringContainsString>
140140
<grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('2')}}" userInput="style" stepKey="grabSwatch5"/>
141-
<assertContains stepKey="assertSwatch5">
141+
<assertStringContainsString stepKey="assertSwatch5">
142142
<expectedResult type="string">adobe-small</expectedResult>
143143
<actualResult type="string">{$grabSwatch5}</actualResult>
144-
</assertContains>
144+
</assertStringContainsString>
145145
<grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('3')}}" userInput="style" stepKey="grabSwatch6"/>
146-
<assertContains stepKey="assertSwatch6">
146+
<assertStringContainsString stepKey="assertSwatch6">
147147
<expectedResult type="string">adobe-base</expectedResult>
148148
<actualResult type="string">{$grabSwatch6}</actualResult>
149-
</assertContains>
149+
</assertStringContainsString>
150150

151151
<!-- Go to the product listing page and see text swatch options -->
152152
<amOnPage url="$createCategory.custom_attributes[url_key]$.html" stepKey="goToCategoryPageStorefront"/>
153153
<waitForPageLoad stepKey="waitForProductListingPage"/>
154154

155155
<!-- Verify the storefront -->
156156
<grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('1')}}" userInput="style" stepKey="grabSwatch7"/>
157-
<assertContains stepKey="assertSwatch7">
157+
<assertStringContainsString stepKey="assertSwatch7">
158158
<expectedResult type="string">adobe-thumb</expectedResult>
159159
<actualResult type="string">{$grabSwatch7}</actualResult>
160-
</assertContains>
160+
</assertStringContainsString>
161161
<grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('2')}}" userInput="style" stepKey="grabSwatch8"/>
162-
<assertContains stepKey="assertSwatch8">
162+
<assertStringContainsString stepKey="assertSwatch8">
163163
<expectedResult type="string">adobe-small</expectedResult>
164164
<actualResult type="string">{$grabSwatch8}</actualResult>
165-
</assertContains>
165+
</assertStringContainsString>
166166
<grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('3')}}" userInput="style" stepKey="grabSwatch9"/>
167-
<assertContains stepKey="assertSwatch9">
167+
<assertStringContainsString stepKey="assertSwatch9">
168168
<expectedResult type="string">adobe-base</expectedResult>
169169
<actualResult type="string">{$grabSwatch9}</actualResult>
170-
</assertContains>
170+
</assertStringContainsString>
171171
</test>
172172
</tests>

0 commit comments

Comments
 (0)