AdminManageSourcesGridSection.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
  10. <section name="AdminManageSourcesGridBody">
  11. <element name="dataRows" type="input" selector=".data-row"/>
  12. </section>
  13. <section name="AdminManageSourcesGridControls">
  14. <element name="addNewSource" type="button" selector="#add" timeout="30"/>
  15. <element name="done" type="button" selector=".page-main-actions button.action-primary" timeout="10"/>
  16. <element name="multicheckDropdown" type="button" selector="div[data-role='grid-wrapper'] th.data-grid-multicheck-cell button.action-multicheck-toggle"/>
  17. <element name="multicheckOption" type="button" selector="//div[@data-role='grid-wrapper']//th[contains(@class, data-grid-multicheck-cell)]//li//span[text() = '{{label}}']" parameterized="true"/>
  18. </section>
  19. <section name="AdminManageSourcesGridFilterControls">
  20. <element name="dropDown" type="button" selector=".admin__data-grid-header .admin__data-grid-filters-current._show"/>
  21. <element name="code" type="input" selector=".admin__data-grid-filters-wrap input[name='source_code']"/>
  22. <element name="name" type="input" selector=".admin__data-grid-filters-wrap input[name='name']"/>
  23. <element name="priority" type="input" selector=".admin__data-grid-filters-wrap input[name='priority']"/>
  24. <element name="selectStatus" type="input" selector=".admin__data-grid-filters-wrap div[data-role='advanced-select']"/>
  25. <element name="enabledOption" type="text" selector="li[data-role='option-group']:nth-of-type(1)"/>
  26. <element name="disabledOption" type="text" selector="li[data-role='option-group']:nth-of-type(2)"/>
  27. <element name="doneButton" type="button" selector=".admin__data-grid-filters-wrap div.action-menu button[data-action='close-advanced-select']"/>
  28. </section>
  29. <section name="AdminManageSourcesGridColumnControls">
  30. <element name="dropDown" type="textarea" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-action-columns-menu"/>
  31. </section>
  32. <section name="AdminManageSourcesGridMassAction">
  33. <element name="actionsButton" type="button" selector="div.admin__data-grid-header-row button.action-select"/>
  34. <element name="changeStatusButton" type="text" selector="div.action-menu-items>ul.action-menu>li:nth-of-type(1)>span.action-menu-item"/>
  35. <element name="changeStatusEnableButton" type="text" selector="div.action-menu-items>ul.action-menu>li:nth-of-type(1)>ul.action-submenu>li:nth-of-type(1)>span.action-menu-item"/>
  36. <element name="changeStatusDisableButton" type="text" selector="div.action-menu-items>ul.action-menu>li:nth-of-type(1)>ul.action-submenu>li:nth-of-type(2)>span.action-menu-item"/>
  37. </section>
  38. <section name="AdminManageSourceGridBody">
  39. <element name="dataRows" type="input" selector=".data-row"/>
  40. <element name="sourceSelectedCheckbox" type="checkbox" selector="#idscheck{{code}}" parameterized="true"/>
  41. <element name="idSelectedCheckbox" type="checkbox" selector="table[data-role='grid'] tr.data-row[data-repeat-index='{{id}}'] input[type='checkbox']" parameterized="true"/>
  42. </section>
  43. </sections>