Skip to content

Commit

Permalink
Merge pull request #167 from magento-pangolin/MC-8972
Browse files Browse the repository at this point in the history
MC-8972 Backport for MC-13210
  • Loading branch information
soumyau authored Jun 14, 2019
2 parents 6933145 + 64d0c39 commit 190128b
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
<argument name="customerEmail"/>
</arguments>
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomersPage"/>
<waitForPageLoad stepKey="waitForCustomerPageLoad"/>
<conditionalClick selector="{{AdminCustomerFiltersSection.clearAll}}" dependentSelector="{{AdminCustomerFiltersSection.clearAll}}" visible="true" stepKey="clickClearFilters"/>
<click stepKey="chooseCustomer" selector="{{AdminCustomerGridMainActionsSection.customerCheckbox(customerEmail)}}"/>
<click stepKey="openActions" selector="{{AdminCustomerGridMainActionsSection.actions}}"/>
<click selector="{{AdminCustomerGridMainActionsSection.customerCheckbox(customerEmail)}}" stepKey="chooseCustomer"/>
<click selector="{{AdminCustomerGridMainActionsSection.actions}}" stepKey="openActions"/>
<waitForPageLoad stepKey="waitActions"/>
<click stepKey="delete" selector="{{AdminCustomerGridMainActionsSection.delete}}"/>
<click selector="{{AdminCustomerGridMainActionsSection.delete}}" stepKey="deleteCustomer"/>
<waitForPageLoad stepKey="waitForConfirmationAlert"/>
<click stepKey="accept" selector="{{AdminCustomerGridMainActionsSection.ok}}"/>
<click selector="{{AdminCustomerGridMainActionsSection.ok}}" stepKey="acceptDeletion"/>
<waitForPageLoad stepKey="waitForDelete"/>
<see stepKey="seeSuccessMessage" userInput="were deleted."/>
<see userInput="were deleted." stepKey="seeSuccessMessage"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="StorefrontFillRegistrationFormActionGroup">
<arguments>
<argument name="customer" defaultValue="CustomerEntityOne"/>
</arguments>
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnStorefrontPage"/>
<waitForPageLoad stepKey="waitForNavigateToCustomersPageLoad"/>
<click stepKey="clickOnCreateAccountLink" selector="{{StorefrontPanelHeaderSection.createAnAccountLink}}"/>
<fillField stepKey="fillFirstName" userInput="{{customer.firstname}}" selector="{{StorefrontCustomerCreateFormSection.firstnameField}}"/>
<fillField stepKey="fillLastName" userInput="{{customer.lastname}}" selector="{{StorefrontCustomerCreateFormSection.lastnameField}}"/>
<fillField stepKey="fillEmail" userInput="{{customer.email}}" selector="{{StorefrontCustomerCreateFormSection.emailField}}"/>
<fillField stepKey="fillPassword" userInput="{{customer.password}}" selector="{{StorefrontCustomerCreateFormSection.passwordField}}"/>
<fillField stepKey="fillConfirmPassword" userInput="{{customer.password}}" selector="{{StorefrontCustomerCreateFormSection.confirmPasswordField}}"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="StorefrontSaveRegistrationFormActionGroup">
<click selector="{{StorefrontCustomerCreateFormSection.createAccountButton}}" stepKey="clickCreateAccountButton"/>
<waitForPageLoad stepKey="waitForCreateAccountButtonToLoad"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
<element name="groupValue" type="button" selector="//span[text()='{{groupValue}}']" parameterized="true"/>
<element name="associateToWebsite" type="select" selector="select[name='customer[website_id]']"/>
<element name="storeView" type="select" selector="select[name='customer[sendemail_store_id]']"/>
<element name="accountInformationTab" type="button" selector="#tab_customer"/>
<element name="attributeImage" type="block" selector=".file-uploader-preview img"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<element name="emailInput" type="input" selector="input[name=email]"/>
<element name="apply" type="button" selector="button[data-action=grid-filter-apply]" timeout="30"/>
<element name="clearFilters" type="button" selector=".admin__data-grid-header button[data-action='grid-filter-reset']" timeout="30"/>
<element name="clearAll" type="button" selector=".admin__data-grid-header .action-tertiary.action-clear"/>
<element name="clearAll" type="button" selector=".admin__data-grid-header .action-tertiary.action-clear" timeout="30"/>
<element name="viewDropdown" type="button" selector=".admin__data-grid-action-bookmarks button.admin__action-dropdown"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="AdminCustomerGridMainActionsSection">
<element name="addNewCustomer" type="button" selector="#add" timeout="30"/>
<element name="actions" type="text" selector=".action-select"/>
<element name="customerCheckbox" type="button" selector="//*[contains(text(),'{{arg}}')]/../preceding-sibling::td[contains(@class, 'data-grid-checkbox-cell')]//input" parameterized="true"/>
<element name="delete" type="button" selector="//*[contains(@class, 'admin__data-grid-header')]//span[contains(@class,'action-menu-item') and text()='Delete']"/>
<element name="actions" type="text" selector=".action-select"/>
<element name="ok" type="button" selector=".modal-footer button.action-accept"/>
</section>
</sections>

0 comments on commit 190128b

Please sign in to comment.