Skip to content

Commit

Permalink
Add action group for click edit link
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Aug 10, 2020
1 parent 4b6cdb7 commit 83b4012
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 36 deletions.
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="AdminCustomerClickFirstRowEditLinkActionGroup">
<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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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="AdminCustomerClickFirstRowEditLinkActionGroup" 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

0 comments on commit 83b4012

Please sign in to comment.