File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
app/code/Magento/Store/Test/Mftf Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
+ <actionGroup name =" AdminSwitchWebsiteActionGroup" >
11
+ <arguments >
12
+ <argument name =" website" />
13
+ </arguments >
14
+ <click selector =" {{AdminMainActionsSection.storeViewDropdown}}" stepKey =" clickWebsiteSwitchDropdown" />
15
+ <waitForElementVisible selector =" {{AdminMainActionsSection.websiteByName('Main Website')}}" stepKey =" waitForWebsiteAreVisible" />
16
+ <click selector =" {{AdminMainActionsSection.websiteByName(website.name)}}" stepKey =" clickWebsiteByName" />
17
+ <waitForElementVisible selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" waitingForInformationModal" />
18
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmStoreSwitch" />
19
+ <see userInput =" {{website.name}}" selector =" {{AdminMainActionsSection.storeSwitcher}}" stepKey =" seeNewWebsiteName" />
20
+ </actionGroup >
21
+ </actionGroups >
Original file line number Diff line number Diff line change 12
12
<element name =" storeSwitcher" type =" text" selector =" .store-switcher" />
13
13
<element name =" storeViewDropdown" type =" button" selector =" #store-change-button" />
14
14
<element name =" storeViewByName" type =" button" selector =" //*[@class='store-switcher-store-view ']/a[contains(text(), '{{storeViewName}}')]" timeout =" 30" parameterized =" true" />
15
+ <element name =" websiteByName" type =" button" selector =" //*[@class='store-switcher-website ']/a[contains(text(), '{{websiteName}}')]" timeout =" 30" parameterized =" true" />
15
16
<element name =" allStoreViews" type =" button" selector =" .store-switcher .store-switcher-all" timeout =" 30" />
16
17
</section >
17
18
</sections >
You can’t perform that action at this time.
0 commit comments