Skip to content

Commit 37d67bf

Browse files
ACP2E-391 fixed integration failures
1 parent a3ac204 commit 37d67bf

File tree

1 file changed

+18
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml

1 file changed

+18
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/ProductTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,25 @@ public function testProductShorDescriptionHasWysiwygEditor()
246246
$product = $repository->get('simple');
247247
$this->dispatch('backend/catalog/product/edit/id/' . $product->getEntityId());
248248
$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+
);
249266
$this->assertStringContainsString('buttonsproduct_form_short_description', $body);
267+
$this->assertStringContainsString("{ 'targetElementId': 'product_form_short_description' }", $body);
250268
}
251269

252270
/**

0 commit comments

Comments
 (0)