|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminGridSelectAllOnPageTest"> |
| 11 | + <annotations> |
| 12 | + <stories value="Toggle select page."/> |
| 13 | + <title value="Toggle select page."/> |
| 14 | + <description value="Empty selected before and after search, like it works for filter"/> |
| 15 | + <testCaseId value=""/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <group value="uI"/> |
| 18 | + </annotations> |
| 19 | + <before> |
| 20 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 21 | + <!--Create three customers--> |
| 22 | + <createData entity="Simple_US_Customer" stepKey="firstCustomer"/> |
| 23 | + <createData entity="Simple_US_Customer" stepKey="secondCustomer"/> |
| 24 | + <createData entity="Simple_US_Customer" stepKey="thirdCustomer"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <!--Remove created customers --> |
| 28 | + <deleteData createDataKey="firstCustomer" stepKey="deleteFirstCustomer"/> |
| 29 | + <deleteData createDataKey="secondCustomer" stepKey="deleteSecondCustomer"/> |
| 30 | + <deleteData createDataKey="thirdCustomer" stepKey="deleteThirdCustomer"/> |
| 31 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 32 | + </after> |
| 33 | + <amOnPage url="{{AdminCustomerPage.url}}" stepKey="openCustomerPage"/> |
| 34 | + <!-- Select all from dropdown --> |
| 35 | + <actionGroup ref="AdminGridSelectAllActionGroup" stepKey="selectAllCustomers"/> |
| 36 | + <!-- Deselect third customer --> |
| 37 | + <click selector="{{AdminCustomerGridMainActionsSection.customerCheckbox(($$thirdCustomer.email$$)}}" stepKey="selectThirdCustomer"/> |
| 38 | + <dontSeeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$thirdCustomer.email$$)}}" stepKey="checkThirdCustomerCheckboxIsUnchecked"/> |
| 39 | + <!-- Click select all on page checkbox --> |
| 40 | + <actionGroup ref="AdminSelectAllCustomers" stepKey="selectAllCustomersOnPage"/> |
| 41 | + <seeElement selector="{{AdminCustomerGridMainActionsSection.multicheckTick}}" stepKey="waitForElement"/> |
| 42 | + <seeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.multicheckTick}}" stepKey="checkAllSelectedCheckBoxIsChecked"/> |
| 43 | + <!-- Check all created records selected --> |
| 44 | + <seeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$firstCustomer.email$$)}}" stepKey="checkFirstCustomerIsCheckedAfterSelectPage"/> |
| 45 | + <seeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$secondCustomer.email$$)}}" stepKey="checkSecondCustomerIsCheckedAfterSelectPage"/> |
| 46 | + <seeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$thirdCustomer.email$$)}}" stepKey="checkThirdCustomerIsCheckedAfterSelectPage"/> |
| 47 | + <!-- Click deselect all on page checkbox --> |
| 48 | + <actionGroup ref="AdminSelectAllCustomers" stepKey="deselectAllCustomersCheckbox"/> |
| 49 | + <dontSeeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.multicheckTick}}" stepKey="checkAllSelectedCheckBoxUnchecked"/> |
| 50 | + <!-- Check all created records unselected --> |
| 51 | + <dontSeeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$firstCustomer.email$$)}}" stepKey="checkFirstCustomerIsUncheckedAfterSelectPage"/> |
| 52 | + <dontSeeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$secondCustomer.email$$)}}" stepKey="checkSecondCustomerIsUncheckedAfterSelectPage"/> |
| 53 | + <dontSeeCheckboxIsChecked selector="{{AdminCustomerGridMainActionsSection.customerCheckbox($$thirdCustomer.email$$)}}" stepKey="checkThirdCustomerIsUncheckedAfterSelectPage"/> |
| 54 | + </test> |
| 55 | +</tests> |
0 commit comments