|
89 | 89 |
|
90 | 90 | <!-- Verify after round trip to the server -->
|
91 | 91 | <grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch('1')}}" userInput="style" stepKey="grabSwatch1"/>
|
92 |
| - <assertContains stepKey="assertSwatch1"> |
| 92 | + <assertStringContainsString stepKey="assertSwatch1"> |
93 | 93 | <expectedResult type="string">adobe-thumb</expectedResult>
|
94 | 94 | <actualResult type="string">{$grabSwatch1}</actualResult>
|
95 |
| - </assertContains> |
| 95 | + </assertStringContainsString> |
96 | 96 | <grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch('2')}}" userInput="style" stepKey="grabSwatch2"/>
|
97 |
| - <assertContains stepKey="assertSwatch2"> |
| 97 | + <assertStringContainsString stepKey="assertSwatch2"> |
98 | 98 | <expectedResult type="string">adobe-small</expectedResult>
|
99 | 99 | <actualResult type="string">{$grabSwatch2}</actualResult>
|
100 |
| - </assertContains> |
| 100 | + </assertStringContainsString> |
101 | 101 | <grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch('3')}}" userInput="style" stepKey="grabSwatch3"/>
|
102 |
| - <assertContains stepKey="assertSwatch3"> |
| 102 | + <assertStringContainsString stepKey="assertSwatch3"> |
103 | 103 | <expectedResult type="string">adobe-base</expectedResult>
|
104 | 104 | <actualResult type="string">{$grabSwatch3}</actualResult>
|
105 |
| - </assertContains> |
| 105 | + </assertStringContainsString> |
106 | 106 |
|
107 | 107 | <!-- Create a configurable product to verify the storefront with -->
|
108 | 108 | <amOnPage url="{{AdminProductCreatePage.url(BaseConfigurableProduct.attribute_set_id, BaseConfigurableProduct.type_id)}}" stepKey="goToCreateConfigurableProduct"/>
|
|
133 | 133 |
|
134 | 134 | <!-- Verify the storefront -->
|
135 | 135 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('1')}}" userInput="style" stepKey="grabSwatch4"/>
|
136 |
| - <assertContains stepKey="assertSwatch4"> |
| 136 | + <assertStringContainsString stepKey="assertSwatch4"> |
137 | 137 | <expectedResult type="string">adobe-thumb</expectedResult>
|
138 | 138 | <actualResult type="string">{$grabSwatch4}</actualResult>
|
139 |
| - </assertContains> |
| 139 | + </assertStringContainsString> |
140 | 140 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('2')}}" userInput="style" stepKey="grabSwatch5"/>
|
141 |
| - <assertContains stepKey="assertSwatch5"> |
| 141 | + <assertStringContainsString stepKey="assertSwatch5"> |
142 | 142 | <expectedResult type="string">adobe-small</expectedResult>
|
143 | 143 | <actualResult type="string">{$grabSwatch5}</actualResult>
|
144 |
| - </assertContains> |
| 144 | + </assertStringContainsString> |
145 | 145 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('3')}}" userInput="style" stepKey="grabSwatch6"/>
|
146 |
| - <assertContains stepKey="assertSwatch6"> |
| 146 | + <assertStringContainsString stepKey="assertSwatch6"> |
147 | 147 | <expectedResult type="string">adobe-base</expectedResult>
|
148 | 148 | <actualResult type="string">{$grabSwatch6}</actualResult>
|
149 |
| - </assertContains> |
| 149 | + </assertStringContainsString> |
150 | 150 |
|
151 | 151 | <!-- Go to the product listing page and see text swatch options -->
|
152 | 152 | <amOnPage url="$createCategory.custom_attributes[url_key]$.html" stepKey="goToCategoryPageStorefront"/>
|
153 | 153 | <waitForPageLoad stepKey="waitForProductListingPage"/>
|
154 | 154 |
|
155 | 155 | <!-- Verify the storefront -->
|
156 | 156 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('1')}}" userInput="style" stepKey="grabSwatch7"/>
|
157 |
| - <assertContains stepKey="assertSwatch7"> |
| 157 | + <assertStringContainsString stepKey="assertSwatch7"> |
158 | 158 | <expectedResult type="string">adobe-thumb</expectedResult>
|
159 | 159 | <actualResult type="string">{$grabSwatch7}</actualResult>
|
160 |
| - </assertContains> |
| 160 | + </assertStringContainsString> |
161 | 161 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('2')}}" userInput="style" stepKey="grabSwatch8"/>
|
162 |
| - <assertContains stepKey="assertSwatch8"> |
| 162 | + <assertStringContainsString stepKey="assertSwatch8"> |
163 | 163 | <expectedResult type="string">adobe-small</expectedResult>
|
164 | 164 | <actualResult type="string">{$grabSwatch8}</actualResult>
|
165 |
| - </assertContains> |
| 165 | + </assertStringContainsString> |
166 | 166 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.nthSwatchOption('3')}}" userInput="style" stepKey="grabSwatch9"/>
|
167 |
| - <assertContains stepKey="assertSwatch9"> |
| 167 | + <assertStringContainsString stepKey="assertSwatch9"> |
168 | 168 | <expectedResult type="string">adobe-base</expectedResult>
|
169 | 169 | <actualResult type="string">{$grabSwatch9}</actualResult>
|
170 |
| - </assertContains> |
| 170 | + </assertStringContainsString> |
171 | 171 | </test>
|
172 | 172 | </tests>
|
0 commit comments