|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminValidateSimpleProductWithCustomOptionsPerPageTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Catalog"/> |
| 13 | + <stories value="[Magento Cloud] Customizable options Drag and drop issue"/> |
| 14 | + <title value="Admin to validate simple product with the custom option dynamic rows per page"/> |
| 15 | + <description value="Admin to validate simple product with the custom option dynamic rows per page"/> |
| 16 | + <severity value="AVERAGE"/> |
| 17 | + <testCaseId value="AC-2682"/> |
| 18 | + <useCaseId value="ACP2E-104"/> |
| 19 | + <group value="SimpleProduct"/> |
| 20 | + </annotations> |
| 21 | + <after> |
| 22 | + <!--Delete custom added per page--> |
| 23 | + <actionGroup ref="AdminDataGridDeleteCustomPerPageActionGroup" stepKey="deleteCustomAddedPerPage"> |
| 24 | + <argument name="perPage" value="ProductPerPage.productCount"/> |
| 25 | + </actionGroup> |
| 26 | + <!--Logout to Admin Area--> |
| 27 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/> |
| 28 | + </after> |
| 29 | + |
| 30 | + <!--Login to Admin Area--> |
| 31 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminArea"/> |
| 32 | + |
| 33 | + <!-- Create product --> |
| 34 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/> |
| 35 | + <actionGroup ref="GoToCreateProductPageActionGroup" stepKey="goToCreateProduct"> |
| 36 | + <argument name="product" value="SimpleProduct"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="FillMainProductFormNoWeightActionGroup" stepKey="fillProductForm"> |
| 39 | + <argument name="product" value="SimpleProduct"/> |
| 40 | + </actionGroup> |
| 41 | + |
| 42 | + <!-- Open custom option panel --> |
| 43 | + <click selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="openCustomizableOptions"/> |
| 44 | + <waitForPageLoad stepKey="waitForCustomOptionsOpen"/> |
| 45 | + |
| 46 | + <!-- Create a first custom option with 2 values --> |
| 47 | + <actionGroup ref="AdminCreateCustomDropDownOptionsActionGroup" stepKey="createFirstCustomOption"> |
| 48 | + <argument name="customOptionName" value="{{ProductOptionDropDown.title}}"/> |
| 49 | + <argument name="firstOption" value="ProductOptionValueDropdown1"/> |
| 50 | + <argument name="secondOption" value="ProductOptionValueDropdown2"/> |
| 51 | + </actionGroup> |
| 52 | + |
| 53 | + <!-- Validate custom options dynamic rows per page --> |
| 54 | + <comment userInput="Admin to validate the custom options dynamic rows per page" stepKey="validateCustomOptionsDynamicRowsPerPage"/> |
| 55 | + <click selector="{{AdminProductGridPaginationSection.perPageDropdown}}" stepKey="clickProductPerPageDropdown"/> |
| 56 | + <click selector="{{AdminProductGridPaginationSection.perPageOption('Custom')}}" stepKey="selectCustomPerPage"/> |
| 57 | + <fillField selector="{{AdminProductGridPaginationSection.perPageInput}}" userInput="1" stepKey="fillCustomPerPage"/> |
| 58 | + <click selector="{{AdminProductGridPaginationSection.perPageApplyInput}}" stepKey="applyCustomPerPage"/> |
| 59 | + <waitForPageLoad stepKey="waitForPageRefreshCustomPerPage"/> |
| 60 | + <waitForElementVisible selector=".admin__dynamic-rows[data-index='values'] tr.data-row" stepKey="waitForRowsToBeVisible"/> |
| 61 | + <seeNumberOfElements selector=".admin__dynamic-rows[data-index='values'] tr.data-row" userInput="1" stepKey="see4RowsOfOptions"/> |
| 62 | + </test> |
| 63 | +</tests> |
0 commit comments