Skip to content

Commit 81fe81c

Browse files
akaashakaash
authored andcommitted
ACQE-5684: CE dependencies for B2B-1507
1 parent 1b2e87c commit 81fe81c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

app/code/Magento/Config/Test/Mftf/Section/AdminConfigSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
<element name="defaultCurrencyCheckbox" type="checkbox" selector="#currency_options_default_inherit"/>
2929
<element name="allowedCurrencyCheckbox" type="checkbox" selector="#currency_options_allow_inherit"/>
3030
<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"/>
3132
</section>
3233
</sections>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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>

0 commit comments

Comments
 (0)