Skip to content

Commit f57e5e8

Browse files
committed
Sorting by Websites not working in product grid in backoffice #20511
1 parent 5362c5a commit f57e5e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
1919
<!--Create new website -->
2020
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
21-
<argument name="newWebsiteName" value="Second Website"/>
22-
<argument name="websiteCode" value="second_website"/>
21+
<argument name="newWebsiteName" value="{{customWebsite.name}}"/>
22+
<argument name="websiteCode" value="{{customWebsite.code}}"/>
2323
</actionGroup>
2424
</before>
2525
<after>
2626
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteTestWebsite">
27-
<argument name="websiteName" value="Second Website"/>
27+
<argument name="websiteName" value="{{customWebsite.name}}"/>
2828
</actionGroup>
2929
<actionGroup ref="logout" stepKey="logout"/>
3030
</after>
@@ -47,7 +47,7 @@
4747

4848
<!-- Add this product to second website -->
4949
<click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="openProductInWebsitesSection1"/>
50-
<click selector="{{ProductInWebsitesSection.website('Second Website')}}" stepKey="selectSecondWebsite"/>
50+
<click selector="{{ProductInWebsitesSection.website('{{customWebsite.name}}')}}" stepKey="selectSecondWebsite"/>
5151
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSave"/>
5252
<waitForLoadingMaskToDisappear stepKey="waitForProductPagetoSaveAgain"/>
5353
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessageAgain"/>
@@ -75,11 +75,11 @@
7575
<actionGroup ref="resetProductGridToDefaultView" stepKey="setProductGridToDefaultSortingWebsites"/>
7676
<click selector="{{AdminProductGridSection.columnHeader('Websites')}}" stepKey="clickWebsitesHeaderToSortAsc"/>
7777
<see selector="{{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput="Main Website" stepKey="checkIfProduct1WebsitesAsc"/>
78-
<see selector="{{AdminProductGridSection.productGridContentsOnRow('2')}}" userInput="Second Website" stepKey="checkIfProduct2WebsitesAsc"/>
78+
<see selector="{{AdminProductGridSection.productGridContentsOnRow('2')}}" userInput="{{customWebsite.name}}" stepKey="checkIfProduct2WebsitesAsc"/>
7979

8080
<!--Sorting works (By Websites) DESC-->
8181
<click selector="{{AdminProductGridSection.columnHeader('Websites')}}" stepKey="clickWebsitesHeaderToSortDesc"/>
82-
<see selector="{{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput="Second Website" stepKey="checkIfProduct1WebsitesDesc"/>
82+
<see selector="{{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput="{{customWebsite.name}}" stepKey="checkIfProduct1WebsitesDesc"/>
8383
<see selector="{{AdminProductGridSection.productGridContentsOnRow('2')}}" userInput="Main Website" stepKey="checkIfProduct2WebsitesDesc"/>
8484
</test>
8585
</tests>

0 commit comments

Comments
 (0)