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