Skip to content

Commit 9cd301f

Browse files
committed
MC-216: Admin should be able to delete a bundle product
1 parent 55d3b79 commit 9cd301f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle/Section/AdminProductCatalogSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
<element name="priceOfFirstRow" type="text" selector="//tr[@data-repeat-index='0']//div[contains(., '{{var1}}')]" parameterized="true"/>
2525
<element name="AllProductsNotOfBundleType" type="text" selector="//td[5]/div[text() != 'Bundle Product']"/>
2626
<element name="attributeSetOfFirstRow" type="text" selector="//tr[@data-repeat-index='0']//div[contains(., '{{var1}}')]" parameterized="true"/>
27+
<element name="deleteMessage" type="text" selector="//div[contains(text(), 'A total of 1 record(s) have been deleted.')]"/>
2728
</section>
2829
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle/Test/AdminDeleteABundleProduct.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@
7676
<click selector="//button[@class='action-primary action-accept']" stepKey="ConfirmDelete"/>
7777
<waitForPageLoad stepKey="loading3"/>
7878

79+
<!--Locating delete message-->
80+
<seeElement selector="{{AdminProductCatalog.deleteMessage}}" stepKey="deleteMessage"/>
81+
7982
<!--Testing deletion of product-->
8083
<amOnPage url="{{BundleProduct.urlKey}}.html" stepKey="GoToProductPageAgain"/>
8184
<waitForPageLoad stepKey="WaitForProductPageToLoadToShowElement"/>
82-
<dontSeeElement stepKey="LookingForNameOfProductTwo" selector="{{BundleStorefrontSection.bundleProductName}}"/>
85+
<dontSeeElement selector="{{BundleStorefrontSection.bundleProductName}}" stepKey="LookingForNameOfProductTwo"/>
8386
</test>
8487
</tests>

0 commit comments

Comments
 (0)