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 2424use Magento \Catalog \Model \Product \Type ;
2525use Magento \Catalog \Api \ProductRepositoryInterface ;
2626use Magento \Catalog \Model \Category ;
27+ use Magento \Catalog \Model \Product \Attribute \Repository as ProductAttributeRepository ;
2728
2829/**
2930 * Test class for Product adminhtml actions
@@ -246,24 +247,9 @@ public function testProductShorDescriptionHasWysiwygEditor()
246247 $ product = $ repository ->get ('simple ' );
247248 $ this ->dispatch ('backend/catalog/product/edit/id/ ' . $ product ->getEntityId ());
248249 $ 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 );
257252
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 );
267253 }
268254
269255 /**
You can’t perform that action at this time.
0 commit comments