|
| 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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd"> |
| 11 | + <section name="StorefrontAddProductToCartSection"> |
| 12 | + <element name="addToCartBtn" type="button" selector="button.action.tocart.primary"/> |
| 13 | + <element name="successMsg" type="button" selector="div.message-success"/> |
| 14 | + <element name="showCard" type="button" selector=".action.showcart"/> |
| 15 | + <element name="proceed" type="button" selector="#top-cart-btn-checkout"/> |
| 16 | + |
| 17 | + </section> |
| 18 | + |
| 19 | + <section name="GoToProductPageSection"> |
| 20 | + <!--Go to Catalog/Products--> |
| 21 | + <element name="catalog" type="button" selector="#menu-magento-catalog-catalog"/> |
| 22 | + <element name="product" type="button" selector="//span[contains(text(), 'Products')]"/> |
| 23 | + <element name="add" type="button" selector="#add_new_product-button"/> |
| 24 | + </section> |
| 25 | + |
| 26 | + <section name="AdminProductFormSection"> |
| 27 | + <element name="attributeSet" type="select" selector="div[data-index='attribute_set_id'] .admin__field-control"/> |
| 28 | + <element name="attributeSetFilter" type="input" selector="div[data-index='attribute_set_id'] .admin__field-control input" timeout="30"/> |
| 29 | + <element name="attributeSetFilterResult" type="input" selector="div[data-index='attribute_set_id'] .action-menu-item._last" timeout="30"/> |
| 30 | + <element name="productName" type="input" selector=".admin__field[data-index=name] input"/> |
| 31 | + <element name="productSku" type="input" selector=".admin__field[data-index=sku] input"/> |
| 32 | + <element name="productStatus" type="checkbox" selector="input[name='product[status]']"/> |
| 33 | + <element name="enableProductLabel" type="checkbox" selector="input[name='product[status]']+label"/> |
| 34 | + <element name="productStatusUseDefault" type="checkbox" selector="input[name='use_default[status]']"/> |
| 35 | + <element name="productNameUseDefault" type="checkbox" selector="input[name='use_default[name]']"/> |
| 36 | + <element name="productPrice" type="input" selector=".admin__field[data-index=price] input"/> |
| 37 | + <element name="productTaxClassUseDefault" type="checkbox" selector="input[name='use_default[tax_class_id]']"/> |
| 38 | + <element name="advancedPricingLink" type="button" selector="button[data-index='advanced_pricing_button']"/> |
| 39 | + <element name="categoriesDropdown" type="multiselect" selector="div[data-index='category_ids']"/> |
| 40 | + <element name="productQuantity" type="input" selector=".admin__field[data-index=qty] input"/> |
| 41 | + <element name="productStockStatus" type="select" selector="select[name='product[quantity_and_stock_status][is_in_stock]']"/> |
| 42 | + <element name="productWeight" type="input" selector=".admin__field[data-index=weight] input"/> |
| 43 | + <element name="productWeightSelect" type="select" selector="select[name='product[product_has_weight]']"/> |
| 44 | + <element name="contentTab" type="button" selector="//strong[contains(@class, 'admin__collapsible-title')]/span[text()='Content']"/> |
| 45 | + <element name="fieldError" type="text" selector="//input[@name='product[{{fieldName}}]']/following-sibling::label[@class='admin__field-error']" parameterized="true"/> |
| 46 | + <element name="priceFieldError" type="text" selector="//input[@name='product[price]']/parent::div/parent::div/label[@class='admin__field-error']"/> |
| 47 | + <element name="addAttributeBtn" type="button" selector="#addAttribute"/> |
| 48 | + <element name="createNewAttributeBtn" type="button" selector="button[data-index='add_new_attribute_button']"/> |
| 49 | + <element name="save" type="button" selector="#save"/> |
| 50 | + <element name="attributeTab" type="button" selector="//strong[contains(@class, 'admin__collapsible-title')]/span[text()='Attributes']"/> |
| 51 | + <element name="attributeLabel" type="input" selector="//input[@name='frontend_label[0]']"/> |
| 52 | + <element name="frontendInput" type="select" selector="select[name = 'frontend_input']"/> |
| 53 | + <element name="productFormTab" type="button" selector="//strong[@class='admin__collapsible-title']/span[contains(text(), '{{tabName}}')]" parameterized="true"/> |
| 54 | + <element name="productFormTabState" type="text" selector="//strong[@class='admin__collapsible-title']/span[contains(text(), '{{tabName}}')]/parent::*/parent::*[@data-state-collapsible='{{state}}']" parameterized="true"/> |
| 55 | + <element name="visibility" type="select" selector="//select[@name='product[visibility]']"/> |
| 56 | + <element name="visibilityUseDefault" type="checkbox" selector="//input[@name='use_default[visibility]']"/> |
| 57 | + <element name="divByDataIndex" type="input" selector="div[data-index='{{var}}']" parameterized="true"/> |
| 58 | + <element name="attributeLabelByText" type="text" selector="//*[@class='admin__field']//span[text()='{{attributeLabel}}']" parameterized="true"/> |
| 59 | + <element name="searchOptimization" type="button" selector="//*[contains(text(),'Search Engine Optimization')]"/> |
| 60 | + <element name="urlKey" type="input" selector="//input[contains(@name,'url_key')]"/> |
| 61 | + <element name="saveButton" type="button" selector="#save-button"/> |
| 62 | + |
| 63 | + </section> |
| 64 | + |
| 65 | + <section name="DeleteCreatedProduct"> |
| 66 | + <element name="createdProductID" type="select" selector="//*[@id='container']//*[text()='{{arg1}}']/parent::td/parent::tr//label[contains(@class, 'data-grid-checkbox-cell-inner')]" parameterized="true"/> |
| 67 | + <element name="actionSelectBox" type="button" selector="//*[@class='col-xs-2']"/> |
| 68 | + <element name="deleteButton" type="button" selector="//*[@class='admin__data-grid-header-row row row-gutter']//*[text()='Delete']"/> |
| 69 | + <element name="okButton" type="button" selector=".action-primary.action-accept"/> |
| 70 | + </section> |
| 71 | + |
| 72 | +</sections> |
0 commit comments