AdminTaxRuleFormSection.xml 2.4 KB

1234567891011121314151617181920212223242526272829
  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="AdminTaxRuleFormSection">
  11. <element name="fieldTaxRate" type="block" selector="div.field-tax_rate"/>
  12. <element name="taxIdentifier" type="input" selector="input.admin__control-text admin__action-multiselect-search" timeout="30"/>
  13. <element name="code" type="input" selector="#code"/>
  14. <element name="taxRateSearch" type="input" selector="input[data-role='advanced-select-text']"/>
  15. <element name="taxRateSelected" type="input" selector="//span[contains(., '{{taxRateCode}}') and preceding-sibling::input[contains(@class, 'mselect-checked')]]" parameterized="true" />
  16. <element name="taxRateOption" type="multiselect" selector="//*[@data-ui-id='tax-rate-form-fieldset-element-form-field-tax-rate']//span[.='{{taxRateCode}}']" parameterized="true" />
  17. <element name="save" type="button" selector="#save" timeout="30"/>
  18. <element name="deleteRule" type="button" selector="#delete" timeout="30"/>
  19. <element name="ok" type="button" selector="button.action-primary.action-accept" timeout="30"/>
  20. <element name="additionalSettings" type="button" selector="#details-summarybase_fieldset" timeout="30"/>
  21. <element name="customerTaxClassOption" type="checkbox" selector="//*[@id='tax_customer_class']/..//span[.='{{taxCustomerClass}}']" parameterized="true"/>
  22. <element name="productTaxClassOption" type="checkbox" selector="//*[@id='tax_product_class']/..//span[.='{{taxProductClass}}']" parameterized="true"/>
  23. <element name="customerTaxClassSelected" type="checkbox" selector="//*[@id='tax_customer_class']/..//span[.='{{taxCustomerClass}}' and preceding-sibling::input[contains(@class, 'mselect-checked')]]" parameterized="true"/>
  24. <element name="productTaxClassSelected" type="checkbox" selector="//*[@id='tax_product_class']/..//span[.='{{taxProductClass}}' and preceding-sibling::input[contains(@class, 'mselect-checked')]]" parameterized="true"/>
  25. <element name="priority" type="text" selector="#priority"/>
  26. <element name="sortOrder" type="text" selector="#position"/>
  27. </section>
  28. </sections>