|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontCheckSortOrderStoreView"> |
| 12 | + <annotations> |
| 13 | + <features value="Backend"/> |
| 14 | + <stories value="Github issue: #13401 'Store View' sort order values are not reflected"/> |
| 15 | + <title value="Check 'Store view' sort order values"/> |
| 16 | + <description value="Check 'Store View' sort order values no frontend store-switcher"/> |
| 17 | + <severity value="MINOR"/> |
| 18 | + <group value="store"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 22 | + <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createFirstStore"> |
| 23 | + <argument name="website" value="{{_defaultWebsite.name}}"/> |
| 24 | + <argument name="storeGroupName" value="{{customStoreGroup.name}}"/> |
| 25 | + <argument name="storeGroupCode" value="{{customStoreGroup.code}}"/> |
| 26 | + </actionGroup> |
| 27 | + <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createSecondStore"> |
| 28 | + <argument name="website" value="{{_defaultWebsite.name}}"/> |
| 29 | + <argument name="storeGroupName" value="{{SecondStoreGroupUnique.name}}"/> |
| 30 | + <argument name="storeGroupCode" value="{{SecondStoreGroupUnique.code}}"/> |
| 31 | + </actionGroup> |
| 32 | + </before> |
| 33 | + <after> |
| 34 | + <actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCustomStore"> |
| 35 | + <argument name="storeGroupName" value="customStoreGroup.name"/> |
| 36 | + </actionGroup> |
| 37 | + <actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteSecondStore"> |
| 38 | + <argument name="storeGroupName" value="SecondStoreGroupUnique.name"/> |
| 39 | + </actionGroup> |
| 40 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 41 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 42 | + <argument name="indices" value=""/> |
| 43 | + </actionGroup> |
| 44 | + <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache"> |
| 45 | + <argument name="tags" value=""/> |
| 46 | + </actionGroup> |
| 47 | + </after> |
| 48 | + <actionGroup ref="AdminCreateStoreViewFillSortOrderActionGroup" stepKey="createFirstStoreView"> |
| 49 | + <argument name="StoreGroup" value="customStoreGroup"/> |
| 50 | + <argument name="customStore" value="customStoreGroup"/> |
| 51 | + <argument name="sortOrder" value="30"/> |
| 52 | + </actionGroup> |
| 53 | + <actionGroup ref="AdminCreateStoreViewFillSortOrderActionGroup" stepKey="createSecondStoreView"> |
| 54 | + <argument name="StoreGroup" value="SecondStoreGroupUnique"/> |
| 55 | + <argument name="customStore" value="SecondStoreGroupUnique"/> |
| 56 | + <argument name="sortOrder" value="20"/> |
| 57 | + </actionGroup> |
| 58 | + |
| 59 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/> |
| 60 | + <click stepKey="selectStoreSwitcher" selector="{{StorefrontFooterSection.switchStoreButton}}"/> |
| 61 | + <grabTextFrom selector="{{StorefrontFooterSection.storeViewOptionNumber('1')}}" stepKey="grabSwatchFirstOption"/> |
| 62 | + <grabTextFrom selector="{{StorefrontFooterSection.storeViewOptionNumber('2')}}" stepKey="grabSwatchSecondOption"/> |
| 63 | + <assertStringContainsString stepKey="checkingSwatchFirstOption"> |
| 64 | + <expectedResult type="string">{{SecondStoreGroupUnique.name}}</expectedResult> |
| 65 | + <actualResult type="variable">$grabSwatchFirstOption</actualResult> |
| 66 | + </assertStringContainsString> |
| 67 | + <assertStringContainsString stepKey="checkingSwatchSecondOption"> |
| 68 | + <expectedResult type="string">{{customStoreGroup.name}}</expectedResult> |
| 69 | + <actualResult type="variable">$grabSwatchSecondOption</actualResult> |
| 70 | + </assertStringContainsString> |
| 71 | + </test> |
| 72 | +</tests> |
0 commit comments