|
| 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 | +<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd"> |
| 11 | + <!-- TODO: Search, Notifications, Admin Menu --> |
| 12 | + <section name="AdminGridMainControls"> |
| 13 | + <element name="add" type="button" selector="#add" timeout="30"/> |
| 14 | + <element name="back" type="button" selector="#back" timeout="30"/> |
| 15 | + <element name="reset" type="button" selector="#reset" timeout="30"/> |
| 16 | + <element name="save" type="button" selector="#save-button" timeout="30"/> |
| 17 | + <element name="saveAndContinue" type="button" selector="#save-button" timeout="30"/> |
| 18 | + <element name="saveArrow" type="button" selector="button[data-ui-id='save-button-dropdown']" timeout="5"/> |
| 19 | + <element name="saveAndClose" type="button" selector="span[title='Save & Close']" timeout="30"/> |
| 20 | + <element name="saveAndNew" type="button" selector="span[title='Save & New']" timeout="30"/> |
| 21 | + </section> |
| 22 | + <section name="AdminGridSearchBox"> |
| 23 | + <element name="searchByKeyword" type="input" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] input[placeholder='Search by keyword']"/> |
| 24 | + <element name="search" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] input[placeholder='Search by keyword'] + .action-submit" timeout="30"/> |
| 25 | + </section> |
| 26 | + <section name="AdminGridFilterControls"> |
| 27 | + <element name="filters" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] button[data-action='grid-filter-expand']" timeout="5"/> |
| 28 | + <element name="applyFilters" type="button" selector="button[data-action='grid-filter-apply']" timeout="30"/> |
| 29 | + <element name="cancel" type="button" selector="button[data-action='grid-filter-cancel']" timeout="30"/> |
| 30 | + <element name="clearAll" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] button[data-action='grid-filter-reset']" timeout="5"/> |
| 31 | + </section> |
| 32 | + <!-- TODO: "Default View" drop down menu --> |
| 33 | + <section name="AdminGridColumnsControls"> |
| 34 | + <element name="columns" type="button" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-action-columns"/> |
| 35 | + |
| 36 | + <element name="columnName" type="button" selector="//label[contains(text(), '{{var1}}')]" parameterized="true" timeout="1"/> |
| 37 | + |
| 38 | + <element name="reset" type="button" selector="//div[@class='admin__action-dropdown-menu-footer']/div/button[contains(text(), 'Reset')]" timeout="5"/> |
| 39 | + <element name="cancel" type="button" selector="//div[@class='admin__action-dropdown-menu-footer']/div/button[contains(text(), 'Cancel')]" timeout="5"/> |
| 40 | + </section> |
| 41 | + <section name="AdminGridActionsMenu"> |
| 42 | + <element name="dropDown" type="select" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-select" timeout="30"/> |
| 43 | + </section> |
| 44 | + <section name="AdminGridRowsPerPage"> |
| 45 | + <element name="count" type="select" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .selectmenu-value input" timeout="30"/> |
| 46 | + </section> |
| 47 | + <!-- TODO: Pagination controls --> |
| 48 | + <section name="AdminGridHeaders"> |
| 49 | + <element name="title" type="text" selector=".page-title-wrapper h1"/> |
| 50 | + <element name="headerByName" type="text" selector="//span[@class='data-grid-cell-content' and contains(text(), '{{var1}}')]/parent::*" parameterized="true"/> |
| 51 | + </section> |
| 52 | + <section name="AdminGridRow"> |
| 53 | + <element name="rowOne" type="text" selector="tr[data-repeat-index='0']"/> |
| 54 | + <element name="rowByIndex" type="text" selector="tr[data-repeat-index='{{var1}}']" parameterized="true"/> |
| 55 | + |
| 56 | + <element name="editByValue" type="button" selector="//a[ancestor::tr[contains(., '{{var1}}')]]" parameterized="true"/> |
| 57 | + |
| 58 | + <element name="checkboxByValue" type="checkbox" selector="//input[ancestor::tr[contains(., '{{var1}}')]]" parameterized="true"/> |
| 59 | + <element name="checkboxByIndex" type="checkbox" selector=".data-row[data-repeat-index='{{var1}}'] .admin__control-checkbox" parameterized="true"/> |
| 60 | + </section> |
| 61 | +</sections> |
0 commit comments