File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 24
24
use Magento \Catalog \Model \Product \Type ;
25
25
use Magento \Catalog \Api \ProductRepositoryInterface ;
26
26
use Magento \Catalog \Model \Category ;
27
+ use Magento \Catalog \Model \Product \Attribute \Repository as ProductAttributeRepository ;
27
28
28
29
/**
29
30
* Test class for Product adminhtml actions
@@ -246,24 +247,9 @@ public function testProductShorDescriptionHasWysiwygEditor()
246
247
$ product = $ repository ->get ('simple ' );
247
248
$ this ->dispatch ('backend/catalog/product/edit/id/ ' . $ product ->getEntityId ());
248
249
$ body = $ this ->getResponse ()->getBody ();
249
- $ this ->assertEquals (
250
- 1 ,
251
- \Magento \TestFramework \Helper \Xpath::getElementsCountForXpath (
252
- '//*[@id="save_and_new"] ' ,
253
- $ body
254
- ),
255
- '"Save & New" button isn \'t present on Edit Product page '
256
- );
250
+ $ this ->assertMatchesRegularExpression ('/editorproduct_form_short_description/ ' , $ body );
251
+ $ this ->assertMatchesRegularExpression ('/buttonsproduct_form_short_description/ ' , $ body );
257
252
258
- $ this ->assertEquals (
259
- 1 ,
260
- \Magento \TestFramework \Helper \Xpath::getElementsCountForXpath (
261
- '//*[@id="save_and_duplicate"] ' ,
262
- $ body
263
- ),
264
- '"Save & Duplicate" button isn \'t present on Edit Product page '
265
- );
266
- $ this ->assertStringContainsString ("{ 'targetElementId': 'product_form_short_description' } " , $ body );
267
253
}
268
254
269
255
/**
You can’t perform that action at this time.
0 commit comments