Skip to content

[MFTF] Add ActionGroup for clicking edit link on customer grid #29460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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="AdminClickFirstRowEditLinkOnCustomerGridActionGroup">
<annotations>
<description>Click edit link for first row on the grid.</description>
</annotations>

<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditLink"/>
<waitForPageLoad stepKey="waitForPageLoading"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
<see userInput="{{CustomerEntityOne.email}}" selector="{{AdminCustomerGridSection.customerGrid}}" stepKey="assertEmail"/>

<!--Assert Customer Form -->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad1"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<see selector="{{AdminCustomerAccountInformationSection.groupIdValue}}" userInput="Retailer" stepKey="seeCustomerGroup1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterTheCustomerByEmail">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton"/>

<!-- Add the Address -->
<click selector="{{AdminEditCustomerAddressesSection.addresses}}" stepKey="selectAddress"/>
Expand Down Expand Up @@ -67,8 +66,7 @@
<see userInput="{{PolandAddress.telephone}}" selector="{{AdminCustomerGridSection.customerGrid}}" stepKey="assertPhoneNumber"/>

<!--Assert Customer Form -->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad1"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<seeInField selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="$$createCustomer.firstname$$" stepKey="seeCustomerFirstName"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterTheCustomerByEmail">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton"/>

<!-- Add the Address -->
<click selector="{{AdminEditCustomerAddressesSection.addresses}}" stepKey="selectAddress"/>
Expand Down Expand Up @@ -67,8 +66,7 @@
<see userInput="{{US_Address_CA.telephone}}" selector="{{AdminCustomerGridSection.customerGrid}}" stepKey="assertPhoneNumber"/>

<!--Assert Customer Form -->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad1"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<seeInField selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="$$createCustomer.firstname$$" stepKey="seeCustomerFirstName"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
<see userInput="{{CustomerEntityOne.email}}" selector="{{AdminCustomerGridSection.customerGrid}}" stepKey="assertEmail"/>

<!--Assert Customer Form -->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad1"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<see selector="{{AdminCustomerAccountInformationSection.groupIdValue}}" userInput="$$customerGroup.code$$" stepKey="seeCustomerGroup1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
<see userInput="Male" selector="{{AdminCustomerGridSection.customerGrid}}" stepKey="assertGender"/>

<!--Assert Customer Form -->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad1"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<seeInField selector="{{AdminCustomerAccountInformationSection.namePrefix}}" userInput="{{CustomerEntityOne.prefix}}" stepKey="seeCustomerNamePrefix"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
<see userInput="{{CustomerEntityOne.email}}" selector="{{AdminCustomerGridSection.customerGrid}}" stepKey="assertEmail"/>

<!--Assert Customer Form -->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad1"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<seeInField selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="seeCustomerFirstName"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
<see selector="{{AdminCustomerGridSection.customerGrid}}" userInput="{{CustomerEntityOne.email}}" stepKey="seeAssertCustomerEmailInGrid"/>

<!--Assert verify created new customer is subscribed to newsletter-->
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickFirstRowEditLink"/>
<waitForPageLoad stepKey="waitForEditLinkLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickFirstRowEditLink"/>
<click selector="{{AdminEditCustomerInformationSection.newsLetter}}" stepKey="clickNewsLetter"/>
<waitForPageLoad stepKey="waitForNewsletterTabToOpen"/>
<seeCheckboxIsChecked selector="{{AdminEditCustomerNewsletterSection.subscribedStatus('1')}}" stepKey="seeAssertSubscribedToNewsletterCheckboxIsChecked"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
<argument name="email" value="{{CustomerEntityOne.email}}"/>
</actionGroup>
<waitForPageLoad stepKey="waitForPageToLoad"/>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickOnEditButton1"/>
<waitForPageLoad stepKey="waitForCustomerEditPageToLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>

<!-- Assert Customer Title -->
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCustomerGrid">
<argument name="email" value="{{CustomerEntityOne.email}}"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickToEditCustomerPage"/>
<waitForPageLoad stepKey="waitForOpenCustomerPage"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickToEditCustomerPage"/>
<grabFromCurrentUrl regex="~(\d+)/~" stepKey="grabCustomerId"/>
<!-- Assert that created customer is subscribed to newsletter on the new Store View -->
<actionGroup ref="AdminAssertCustomerIsSubscribedToNewslettersAndSelectedStoreView" stepKey="assertSubscribedToNewsletter">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCreatedCustomer">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEditButton"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickEditButton"/>

<!-- Click create order -->
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCreatedCustomer">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEditButton"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickEditButton"/>

<!-- Click create order -->
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCreatedCustomer">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEditButton"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickEditButton"/>

<!-- Click create order -->
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCreatedCustomer">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEditButton"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickEditButton"/>

<!-- Click create order -->
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCreatedCustomer">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEditButton"/>
<waitForPageLoad stepKey="waitForCustomerPageLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickEditButton"/>

<!-- Click create order -->
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterCreatedCustomer">
<argument name="email" value="$$createCustomer.email$$"/>
</actionGroup>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEditButton"/>
<waitForPageLoad stepKey="waitForCustomerPageLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickEditButton"/>

<!-- Click create order -->
<click selector="{{AdminCustomerMainActionsSection.createOrderBtn}}" stepKey="clickCreateOrder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
</actionGroup>
<!-- Select Edit next to the Default Store View -->
<comment userInput="Select Edit next to the Default Store View" stepKey="commentEditDefaultView"/>
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickToEditDefaultStoreView"/>
<waitForPageLoad stepKey="waitForDefaultStorePage"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickToEditDefaultStoreView"/>
<!-- Expand the Product Image Watermarks section-->
<comment userInput="Expand the Product Image Watermarks section" stepKey="commentOpenWatermarksSection"/>
<click selector="{{AdminDesignConfigSection.watermarkSectionHeader}}" stepKey="clickToProductImageWatermarks"/>
Expand Down