File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,25 @@ public function testProductShorDescriptionHasWysiwygEditor()
246
246
$ product = $ repository ->get ('simple ' );
247
247
$ this ->dispatch ('backend/catalog/product/edit/id/ ' . $ product ->getEntityId ());
248
248
$ 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
+ );
257
+
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
+ );
249
266
$ this ->assertStringContainsString ('buttonsproduct_form_short_description ' , $ body );
267
+ $ this ->assertStringContainsString ("{ 'targetElementId': 'product_form_short_description' } " , $ body );
250
268
}
251
269
252
270
/**
You can’t perform that action at this time.
0 commit comments