|
25 | 25 | </createData>
|
26 | 26 |
|
27 | 27 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
28 |
| - <!--Create new website --> |
| 28 | + |
29 | 29 | <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
|
30 | 30 | <argument name="newWebsiteName" value="{{customWebsite.name}}"/>
|
31 | 31 | <argument name="websiteCode" value="{{customWebsite.code}}"/>
|
|
52 | 52 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
53 | 53 | </after>
|
54 | 54 |
|
55 |
| - <!--Assign Custom Website to Simple Product --> |
56 |
| - <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToCatalogProductGrid"/> |
57 |
| - |
58 |
| - <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial"/> |
| 55 | + <actionGroup ref="AdminClearFiltersActionGroup" stepKey="navigateToCatalogProductGrid"/> |
| 56 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickClearFiltersInitial"/> |
59 | 57 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="assignCustomWebsiteToProduct">
|
60 | 58 | <argument name="product" value="$$productAssignedToCustomWebsite$$"/>
|
61 | 59 | </actionGroup>
|
62 |
| - <scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="scrollToWebsites"/> |
63 |
| - <conditionalClick selector="{{ProductInWebsitesSection.sectionHeader}}" dependentSelector="{{AdminProductContentSection.sectionHeaderShow}}" visible="false" stepKey="expandSection"/> |
64 |
| - <waitForPageLoad stepKey="waitForPageOpened"/> |
65 |
| - <uncheckOption selector="{{ProductInWebsitesSection.website(_defaultWebsite.name)}}" stepKey="deselectMainWebsite"/> |
66 |
| - <checkOption selector="{{ProductInWebsitesSection.website(customWebsite.name)}}" stepKey="selectWebsite"/> |
67 |
| - |
68 |
| - <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSave"/> |
69 |
| - <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessageAgain"/> |
| 60 | + <actionGroup ref="AdminChangeWebSiteAssignedToProductActionGroup" stepKey="scrollToWebsites"> |
| 61 | + <argument name="website" value="{{customWebsite.name}}"/> |
| 62 | + <argument name="websiteToDeselect" value="{{_defaultWebsite.name}}"/> |
| 63 | + </actionGroup> |
| 64 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="expandSection"/> |
| 65 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageOpened"/> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="deselectMainWebsite"/> |
| 67 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectWebsite"/> |
| 68 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSave"/> |
| 69 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSaveProductMessageAgain"/> |
70 | 70 |
|
71 |
| - <!--Navigate To Product Grid To Check Website Sorting--> |
72 | 71 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToCatalogProductGridToSortByWebsite"/>
|
73 |
| - |
74 |
| - <!--Sorting works (By Websites) ASC--> |
75 |
| - <click selector="{{AdminProductGridSection.columnHeader('Websites')}}" stepKey="clickWebsitesHeaderToSortAsc"/> |
| 72 | + <actionGroup ref="AdminSortProductsGridByActionGroup" stepKey="clickWebsitesHeaderToSortAsc"> |
| 73 | + <argument name="field" value="Websites"/> |
| 74 | + </actionGroup> |
76 | 75 | <see selector="{{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput="Main Website" stepKey="checkIfProduct1WebsitesAsc"/>
|
77 |
| - |
78 |
| - <!--Sorting works (By Websites) DESC--> |
79 |
| - <click selector="{{AdminProductGridSection.columnHeader('Websites')}}" stepKey="clickWebsitesHeaderToSortDesc"/> |
| 76 | + <actionGroup ref="AdminSortProductsGridByActionGroup" stepKey="clickWebsitesHeaderToSortDesc"> |
| 77 | + <argument name="field" value="Websites"/> |
| 78 | + </actionGroup> |
80 | 79 | <see selector="{{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput="{{customWebsite.name}}" stepKey="checkIfProduct1WebsitesDesc"/>
|
81 | 80 | </test>
|
82 | 81 | </tests>
|
0 commit comments