Skip to content

Commit 5c8e69c

Browse files
committed
MQE-1393 - Adding new Action Group so we can edit it in B2B
- Adding a new selector for the Customer page. - Replacing inline selectors with Section references.
1 parent 3125194 commit 5c8e69c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminUpdateCustomerGroupActionGroup.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
</arguments>
1616

1717
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomerPage01"/>
18-
<waitForPageLoad stepKey="waitForPageLoad01"/>
1918

2019
<!-- Start of Action Group: searchAdminDataGridByKeyword -->
2120
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters0"/>
@@ -27,13 +26,13 @@
2726
<click selector="{{AdminGridRow.editByValue(emailAddress)}}" stepKey="clickOnCustomer01"/>
2827
<waitForPageLoad stepKey="waitForPageLoad03"/>
2928

30-
<conditionalClick selector="#tab_customer" dependentSelector="#tab_customer" visible="true" stepKey="clickOnAccountInformation01"/>
29+
<conditionalClick selector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" dependentSelector="{{AdminCustomerAccountInformationSection.accountInformationTab}}" visible="true" stepKey="clickOnAccountInformation01"/>
3130
<waitForPageLoad stepKey="waitForPageLoad04"/>
3231

33-
<click selector=".admin__control-select[name='customer[group_id]']" stepKey="clickOnCustomerGroup01"/>
34-
<selectOption selector=".admin__control-select[name='customer[group_id]']" userInput="{{customerGroup}}" stepKey="selectCustomerGroup01"/>
32+
<click selector="{{AdminCustomerAccountInformationSection.group}}" stepKey="clickOnCustomerGroup01"/>
33+
<selectOption selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerGroup}}" stepKey="selectCustomerGroup01"/>
3534

36-
<click selector="#save" stepKey="clickOnSave01"/>
35+
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickOnSave01"/>
3736
<waitForPageLoad stepKey="waitForPageLoad05"/>
3837
</actionGroup>
3938
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Section/AdminCustomerAccountInformationSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminCustomerAccountInformationSection">
12+
<element name="accountInformationTab" type="button" selector="#tab_customer"/>
1213
<element name="statusInactive" type="button" selector=".admin__actions-switch-label"/>
1314
<element name="accountInformationTitle" type="text" selector=".admin__page-nav-title"/>
1415
<element name="accountInformationButton" type="text" selector="//a/span[text()='Account Information']"/>

0 commit comments

Comments
 (0)