-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b39196
commit 9a98048
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/code/Magento/Store/Test/Mftf/ActionGroup/AdminCheckStoreViewOptionsActionGroup.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminCheckStoreViewOptionsActionGroup"> | ||
<annotations> | ||
<description>Goes to the Catalog->Product filters and check store view options at the Store View dropdown</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="storeViewId" type="string"/> | ||
</arguments> | ||
<amOnPage url="{{ProductCatalogPage.url}}" stepKey="OpenProductCatalogPage"/> | ||
<waitForPageLoad stepKey="waitForProductCatalogPage"/> | ||
<click selector="{{AdminProductGridFilterSection.filters}}" stepKey="clickFiltersButton"/> | ||
<click selector="{{AdminProductFiltersSection.storeViewDropDown}}" stepKey="clickStoreViewSwitchDropdown"/> | ||
<waitForElementVisible selector="{{AdminProductFiltersSection.storeViewDropDown}}" stepKey="waitForWebsiteAreVisible"/> | ||
<seeElement selector="{{AdminProductGridFilterSection.storeViewOptions(storeViewId)}}" stepKey="seeStoreViewOption"/> | ||
</actionGroup> | ||
</actionGroups> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
app/code/Magento/Store/Test/Mftf/Test/AdminCreateDuplicateNameStoreViewTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminCreateDuplicateNameStoreViewTest"> | ||
<annotations> | ||
<features value="Store"/> | ||
<stories value="Create a store view in admin"/> | ||
<title value="Admin should be able to create a Store View with the same name"/> | ||
<description value="Admin should be able to create a Store View with the same name"/> | ||
<group value="storeView"/> | ||
<severity value="AVERAGE"/> | ||
</annotations> | ||
<before> | ||
<!--Create two store views with same name, but different codes--> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createFirstStoreView"> | ||
<argument name="StoreGroup" value="_defaultStoreGroup"/> | ||
<argument name="customStore" value="customStoreViewSameNameFirst"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createSecondStoreView"> | ||
<argument name="StoreGroup" value="_defaultStoreGroup"/> | ||
<argument name="customStore" value="customStoreViewSameNameSecond"/> | ||
</actionGroup> | ||
</before> | ||
<after> | ||
<!--Delete both store views--> | ||
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteFirstStoreView"> | ||
<argument name="customStore" value="customStoreViewSameNameFirst"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteSecondStoreView"> | ||
<argument name="customStore" value="customStoreViewSameNameSecond"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
<!--Get Id of store views--> | ||
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="navigateToStoreViews"/> | ||
<click selector="{{AdminStoresGridSection.storeViewLinkInNthRow('2')}}" stepKey="openFirstViewPAge" /> | ||
<grabFromCurrentUrl stepKey="getStoreViewIdFirst" regex="~/store_id/(\d+)/~"/> | ||
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="navigateToStoreViewsAgain"/> | ||
<click selector="{{AdminStoresGridSection.storeViewLinkInNthRow('3')}}" stepKey="openSecondViewPAge" /> | ||
<grabFromCurrentUrl stepKey="getStoreViewIdSecond" regex="~/store_id/(\d+)/~"/> | ||
<!--Go to catalog -> product grid, open the filter and check the listed store view--> | ||
<actionGroup ref="AdminCheckStoreViewOptionsActionGroup" stepKey="checkFirstStoreView"> | ||
<argument name="storeViewId" value="{$getStoreViewIdFirst}"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminCheckStoreViewOptionsActionGroup" stepKey="checkSecondStoreView"> | ||
<argument name="storeViewId" value="{$getStoreViewIdSecond}"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |