Skip to content

Commit b6dd9b3

Browse files
author
Stas Puga
committed
MAGETWO-95171: Filtering Category Products using scope selector
1 parent d586f10 commit b6dd9b3

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminProductActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@
257257
<arguments>
258258
<argument name="website" type="string"/>
259259
</arguments>
260-
<scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="ScrollToWebsites"/>
261-
<click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="ClickTpOpenProductInWebsite"/>
260+
<scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="scrollToWebsites"/>
261+
<click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="clickTpOpenProductInWebsite"/>
262262
<waitForPageLoad stepKey="waitForPageOpened"/>
263-
<checkOption selector="{{ProductInWebsitesSection.website(website)}}" stepKey="SelectWebsite"/>
263+
<checkOption selector="{{ProductInWebsitesSection.website(website)}}" stepKey="selectWebsite"/>
264264
</actionGroup>
265265

266266
<!--Switch to New Store view-->

app/code/Magento/Catalog/Test/Mftf/Test/AdminFilteringCategoryProductsUsingScopeSelectorTest.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<test name="AdminFilteringCategoryProductsUsingScopeSelectorTest">
1212
<annotations>
1313
<features value="Catalog"/>
14-
<group value="Catalog"/>
1514
<title value="Filtering Category Products using scope selector"/>
1615
<description value="Filtering Category Products using scope selector"/>
1716
<severity value="MAJOR"/>
@@ -21,16 +20,16 @@
2120
<before>
2221
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2322
<!--Create website, Sore adn Store View-->
24-
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="AdminCreateWebsite">
23+
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="adminCreateWebsite">
2524
<argument name="newWebsiteName" value="secondWebsite"/>
2625
<argument name="websiteCode" value="second_website"/>
2726
</actionGroup>
28-
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="AdminCreateStore">
27+
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="adminCreateStore">
2928
<argument name="website" value="secondWebsite"/>
3029
<argument name="storeGroupName" value="secondStore"/>
3130
<argument name="storeGroupCode" value="second_store"/>
3231
</actionGroup>
33-
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="AdminCreateStoreView">
32+
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="adminCreateStoreView">
3433
<argument name="StoreGroup" value="customStoreTierPrice"/>
3534
<argument name="customStore" value="customStoreView"/>
3635
</actionGroup>
@@ -64,6 +63,8 @@
6463
<waitForPageLoad stepKey="waitForToOpenedWebsiteSection"/>
6564
<uncheckOption selector="{{ProductInWebsitesSection.website('Main Website')}}" stepKey="uncheckWebsite"/>
6665
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/>
66+
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."
67+
stepKey="seeAssertSuccessMessage"/>
6768

6869
<!-- Set filter to product name and product2 in website 2 only -->
6970
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/>
@@ -77,6 +78,8 @@
7778
</actionGroup>
7879
<uncheckOption selector="{{ProductInWebsitesSection.website('Main Website')}}" stepKey="uncheckWebsite1"/>
7980
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct1"/>
81+
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."
82+
stepKey="seeAssertSuccessMessage1"/>
8083

8184
<!-- Set filter to product name and product12 assigned to both websites 1 and 2 -->
8285
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex1"/>
@@ -89,11 +92,14 @@
8992
<argument name="website" value="secondWebsite"/>
9093
</actionGroup>
9194
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct2"/>
95+
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."
96+
stepKey="seeAssertSuccessMessage2"/>
9297
</before>
9398
<after>
9499
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
95100
<argument name="websiteName" value="secondWebsite"/>
96101
</actionGroup>
102+
<actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductsFilter"/>
97103
<deleteData createDataKey="createProduct0" stepKey="deleteProduct"/>
98104
<deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
99105
<deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>

0 commit comments

Comments
 (0)