File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Store/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 28
28
<element name =" defaultCurrencyCheckbox" type =" checkbox" selector =" #currency_options_default_inherit" />
29
29
<element name =" allowedCurrencyCheckbox" type =" checkbox" selector =" #currency_options_allow_inherit" />
30
30
<element name =" baseCurrency" type =" button" selector =" #currency_options_base" />
31
+ <element name =" selectWebsiteName" type =" button" selector =" //a[@data-role='website-id' and contains(text(),'{{selectWebsite}}')]" parameterized =" true" />
31
32
</section >
32
33
</sections >
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
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminSwitchDefaultConfigWebsiteActionGroup" >
12
+ <!-- Admin switch default config between websites -->
13
+ <annotations >
14
+ <description >Goes to the Store Configuration page. Click on the default config and switch between the websites.</description >
15
+ </annotations >
16
+ <arguments >
17
+ <argument name =" newWebsiteName" type =" string" />
18
+ </arguments >
19
+
20
+ <amOnPage url =" {{AdminB2BConfigPage.url}}" stepKey =" goToB2BFeaturesPage3" />
21
+ <waitForPageLoad stepKey =" waitForPageLoad3" />
22
+
23
+ <click selector =" {{AdminConfigSection.defaultConfigButton}}" stepKey =" clickDefaultConfigButton" />
24
+ <see selector =" {{AdminConfigSection.defaultConfigDropdown}}" userInput =" {{newWebsiteName}}" stepKey =" seeAssertWebsiteInDefaultConfigDropdown" />
25
+
26
+ <click selector =" {{AdminConfigSection.selectWebsiteName(newWebsiteName)}}" stepKey =" clickSaveWebsite" />
27
+ <waitForElementVisible selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" waitForElementVisible" />
28
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" acceptMessage" />
29
+ </actionGroup >
30
+ </actionGroups >
You can’t perform that action at this time.
0 commit comments