|
20 | 20 |
|
21 | 21 | <before>
|
22 | 22 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminPanel"/>
|
23 |
| - |
24 |
| - <!--Create a new additional store view for the deafult website and store--> |
| 23 | + <!--Create a new additional store view for the default website and store--> |
25 | 24 | <actionGroup ref="CreateStoreViewActionGroup" stepKey="createNewSecondStoreviewForDefaultStore">
|
26 | 25 | <argument name="storeView" value="SecondStoreGroupUnique"/>
|
27 | 26 | </actionGroup>
|
28 |
| - <!--Create a new second store for the deafult website--> |
| 27 | + <!--Create a new second store for the default website--> |
29 | 28 | <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createNewStoreForMainWebsite">
|
30 | 29 | <argument name="website" value="{{_defaultWebsite.name}}"/>
|
31 | 30 | <argument name="storeGroupName" value="{{customStoreGroup.name}}"/>
|
32 | 31 | <argument name="storeGroupCode" value="{{customStoreGroup.code}}"/>
|
33 | 32 | </actionGroup>
|
34 |
| - <!--Create a storeview for the second store--> |
| 33 | + <!--Create a store view for the second store--> |
35 | 34 | <actionGroup ref="CreateCustomStoreViewActionGroup" stepKey="createStoreviewForSecondStore"/>
|
36 |
| - |
| 35 | + <!--Create a second custom website--> |
37 | 36 | <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createNewWebsite">
|
38 | 37 | <argument name="newWebsiteName" value="{{secondCustomWebsite.name}}"/>
|
39 | 38 | <argument name="websiteCode" value="{{secondCustomWebsite.code}}"/>
|
40 | 39 | </actionGroup>
|
41 |
| - |
| 40 | + <!--Create a store for the second website--> |
42 | 41 | <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createStoreForNewWebsite">
|
43 | 42 | <argument name="website" value="{{secondCustomWebsite.name}}"/>
|
44 | 43 | <argument name="storeGroupName" value="{{NewStoreData.name}}"/>
|
45 | 44 | <argument name="storeGroupCode" value="{{NewStoreData.code}}"/>
|
46 | 45 | </actionGroup>
|
47 |
| - |
| 46 | + <!--Create a store view of the new store of second website--> |
48 | 47 | <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createCustomStoreView">
|
49 | 48 | <argument name="StoreGroup" value="NewStoreData"/>
|
50 | 49 | <argument name="customStore" value="staticSecondStore"/>
|
51 | 50 | </actionGroup>
|
52 | 51 | </before>
|
53 | 52 |
|
54 |
| - |
55 | 53 | <after>
|
56 |
| - |
| 54 | + <!--Delete the created category--> |
57 | 55 | <actionGroup ref="DeleteCategoryActionGroup" stepKey="deleteCategory">
|
58 | 56 | <argument name="categoryEntity" value="SimpleSubCategory"/>
|
59 | 57 | </actionGroup>
|
60 |
| - |
| 58 | + <!--Set the main website as default--> |
61 | 59 | <actionGroup ref="AdminSetDefaultWebsiteActionGroup" stepKey="setMainWebsiteAsDefault">
|
62 | 60 | <argument name="websiteName" value="{{_defaultWebsite.name}}"/>
|
63 | 61 | </actionGroup>
|
64 |
| - |
| 62 | + <!--Delete the second created website--> |
65 | 63 | <actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteCreatedWebsite">
|
66 | 64 | <argument name="websiteName" value="{{secondCustomWebsite.name}}"/>
|
67 | 65 | </actionGroup>
|
68 |
| - |
| 66 | + <!--Create a second store created for main website--> |
69 | 67 | <actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCreatedCustomWebsiteStore">
|
70 | 68 | <argument name="storeGroupName" value="customStoreGroup.name"/>
|
71 | 69 | </actionGroup>
|
72 |
| - |
| 70 | + <!--Create a second store view created for main website--> |
73 | 71 | <actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteCreatedCustomStoreview">
|
74 | 72 | <argument name="customStore" value="SecondStoreGroupUnique"/>
|
75 | 73 | </actionGroup>
|
76 | 74 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
77 | 75 | </after>
|
78 |
| - |
79 |
| - |
| 76 | + <!--Create a category and check that in storefront --> |
80 | 77 | <createData entity="SimpleSubCategory" stepKey="createCategory"/>
|
81 |
| - |
82 | 78 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/>
|
83 | 79 | <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="cartClickCategory"/>
|
84 | 80 | <see userInput="$$createCategory.name$$" stepKey="assertCategoryNameOnStorefront" selector="{{StorefrontCategoryMainSection.CategoryTitle}}"/>
|
85 | 81 | <waitForPageLoad stepKey="waitForCustomerCategoryPageLoad"/>
|
86 |
| - |
87 |
| - <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="switchToSecondMainStoreview"> |
| 82 | + <!--Switch to second store view and check that created category in storefront--> |
| 83 | + <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="switchToSecondMainStoreView"> |
88 | 84 | <argument name="storeView" value="SecondStoreGroupUnique"/>
|
89 | 85 | </actionGroup>
|
90 | 86 | <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="cartClickCategory2"/>
|
91 |
| - <see userInput="$$createCategory.name$$" stepKey="assertCategoryNameOnSecondMainStoreview" selector="{{StorefrontCategoryMainSection.CategoryTitle}}"/> |
| 87 | + <see userInput="$$createCategory.name$$" stepKey="assertCategoryNameOnSecondMainStoreView" selector="{{StorefrontCategoryMainSection.CategoryTitle}}"/> |
92 | 88 | <waitForPageLoad stepKey="waitForCustomerCategoryPageLoad2"/>
|
93 |
| - |
94 |
| - |
| 89 | + <!--Switch to second store and check that created category in storefront--> |
95 | 90 | <actionGroup ref="StorefrontSwitchStoreActionGroup" stepKey="switchToSecondMainStore">
|
96 | 91 | <argument name="storeName" value="{{customStoreGroup.name}}"/>
|
97 | 92 | </actionGroup>
|
98 | 93 | <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="cartClickCategory3"/>
|
99 | 94 | <see userInput="$$createCategory.name$$" stepKey="assertCategoryNameOnSecondMainStore" selector="{{StorefrontCategoryMainSection.CategoryTitle}}"/>
|
100 | 95 | <waitForPageLoad stepKey="waitForCustomerCategoryPageLoad3"/>
|
101 |
| - |
| 96 | + <!--Switch to second website and check that created category in storefront--> |
102 | 97 | <actionGroup ref="AdminSetDefaultWebsiteActionGroup" stepKey="setNewWebsiteAsDefault">
|
103 | 98 | <argument name="websiteName" value="{{secondCustomWebsite.name}}"/>
|
104 | 99 | </actionGroup>
|
105 | 100 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage2"/>
|
106 | 101 | <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="cartClickCategory4"/>
|
107 | 102 | <see userInput="$$createCategory.name$$" stepKey="assertCategoryNameOnSecondWebsite" selector="{{StorefrontCategoryMainSection.CategoryTitle}}"/>
|
108 | 103 | <waitForPageLoad stepKey="waitForCustomerCategoryPageLoad4"/>
|
109 |
| - |
110 | 104 | </test>
|
111 |
| - </tests> |
112 |
| - |
113 |
| - |
114 |
| - |
115 |
| - |
116 |
| - |
117 |
| - |
| 105 | +</tests> |
0 commit comments