Skip to content

Commit 5ff5098

Browse files
ACP2E-391 Updated integration test
1 parent 75bb1b3 commit 5ff5098

File tree

1 file changed

+3
-17
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml

1 file changed

+3
-17
lines changed

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

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Magento\Catalog\Model\Product\Type;
2525
use Magento\Catalog\Api\ProductRepositoryInterface;
2626
use 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
/**

0 commit comments

Comments
 (0)