|
18 | 18 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
19 | 19 | <!--Create new website --> |
20 | 20 | <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}}"/> |
23 | 23 | </actionGroup> |
24 | 24 | </before> |
25 | 25 | <after> |
26 | 26 | <actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteTestWebsite"> |
27 | | - <argument name="websiteName" value="Second Website"/> |
| 27 | + <argument name="websiteName" value="{{customWebsite.name}}"/> |
28 | 28 | </actionGroup> |
29 | 29 | <actionGroup ref="logout" stepKey="logout"/> |
30 | 30 | </after> |
|
47 | 47 |
|
48 | 48 | <!-- Add this product to second website --> |
49 | 49 | <click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="openProductInWebsitesSection1"/> |
50 | | - <click selector="{{ProductInWebsitesSection.website('Second Website')}}" stepKey="selectSecondWebsite"/> |
| 50 | + <click selector="{{ProductInWebsitesSection.website('{{customWebsite.name}}')}}" stepKey="selectSecondWebsite"/> |
51 | 51 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSave"/> |
52 | 52 | <waitForLoadingMaskToDisappear stepKey="waitForProductPagetoSaveAgain"/> |
53 | 53 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessageAgain"/> |
|
75 | 75 | <actionGroup ref="resetProductGridToDefaultView" stepKey="setProductGridToDefaultSortingWebsites"/> |
76 | 76 | <click selector="{{AdminProductGridSection.columnHeader('Websites')}}" stepKey="clickWebsitesHeaderToSortAsc"/> |
77 | 77 | <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"/> |
79 | 79 |
|
80 | 80 | <!--Sorting works (By Websites) DESC--> |
81 | 81 | <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"/> |
83 | 83 | <see selector="{{AdminProductGridSection.productGridContentsOnRow('2')}}" userInput="Main Website" stepKey="checkIfProduct2WebsitesDesc"/> |
84 | 84 | </test> |
85 | 85 | </tests> |
0 commit comments