|
11 | 11 | <test name="StoreViewLanguageCorrectSwitchTest">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Cms"/>
|
14 |
| - <stories value="Store View (language) switch leads to 404"/> |
15 |
| - <group value="Cms"/> |
16 | 14 | <title value="Check that Store View(language) switches correct"/>
|
17 | 15 | <description value="Check that Store View(language) switches correct"/>
|
18 | 16 | <severity value="MAJOR"/>
|
19 | 17 | <testCaseId value="MAGETWO-96388"/>
|
20 | 18 | <useCaseId value="MAGETWO-57337"/>
|
| 19 | + <group value="Cms"/> |
21 | 20 | </annotations>
|
22 | 21 | <before>
|
23 | 22 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
37 | 36 |
|
38 | 37 | <!-- Create StoreView -->
|
39 | 38 | <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createStoreView">
|
40 |
| - <argument name="customStore" value="NewStoreViewData"/> |
| 39 | + <argument name="customStore" value="NewStoreViewData"/> |
41 | 40 | </actionGroup>
|
42 | 41 |
|
43 | 42 | <!-- Add StoreView To Cms Page-->
|
|
51 | 50 | <see userInput="$$createFirstCmsPage.title$$" stepKey="seePageTitle"/>
|
52 | 51 |
|
53 | 52 | <!-- Switch StoreView and check that Cms Page is open -->
|
54 |
| - <click selector="{{StorefrontHeaderSection.storeViewSwitcher}}" stepKey="clickStoreViewSwitcher"/> |
55 |
| - <waitForElementVisible selector="{{StorefrontHeaderSection.storeViewDropdown}}" stepKey="waitForStoreViewDropDown"/> |
56 |
| - <click selector="{{StorefrontHeaderSection.storeViewOption(NewStoreViewData.code)}}" stepKey="selectStoreView"/> |
| 53 | + <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="switchToCustomStoreView"> |
| 54 | + <argument name="storeView" value="NewStoreViewData"/> |
| 55 | + </actionGroup> |
57 | 56 | <amOnPage url="{{StorefrontHomePage.url}}/$$createSecondCmsPage.identifier$$" stepKey="gotToSecondCmsPage"/>
|
58 | 57 | <see userInput="$$createSecondCmsPage.title$$" stepKey="seePageTitle1"/>
|
| 58 | + |
| 59 | + <!--Open first Cms page on custom store view--> |
| 60 | + <amOnPage url="{{StorefrontHomePage.url}}/$$createFirstCmsPage.identifier$$" stepKey="gotToFirstCmsPage1"/> |
| 61 | + <see userInput="Whoops, our bad..." stepKey="seePageError"/> |
| 62 | + |
| 63 | + <!--Switch to default store view and check Cms page--> |
| 64 | + <actionGroup ref="StorefrontSwitchDefaultStoreViewActionGroup" stepKey="switchToDefualtStoreView"/> |
| 65 | + <see userInput="$$createFirstCmsPage.title$$" stepKey="seePageTitle2"/> |
59 | 66 | </test>
|
60 | 67 | </tests>
|
0 commit comments