|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminValidateSimpleProductWithCustomOptionsDragNDropPerPageTest" extends="AdminValidateSimpleProductWithCustomOptionsPerPageTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Catalog"/> |
| 14 | + <stories value="Customizable options Drag and drop issue"/> |
| 15 | + <title value="Customizable options Drag&Drop records across pages"/> |
| 16 | + <description value="Validate product's customizable option records Drag&Drop functionality across pages in Admin"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="AC-6086"/> |
| 19 | + <useCaseId value="ACP2E-980"/> |
| 20 | + <group value="SimpleProduct"/> |
| 21 | + </annotations> |
| 22 | + <!-- Create a second custom option with 2 values --> |
| 23 | + <actionGroup ref="AdminCreateCustomDropDownOptionsActionGroup" stepKey="createSecondCustomOption"> |
| 24 | + <argument name="customOptionName" value="{{ProductOptionDropDown.title}}2"/> |
| 25 | + <argument name="firstOption" value="ProductOptionValueDropdown1"/> |
| 26 | + <argument name="secondOption" value="ProductOptionValueDropdown2"/> |
| 27 | + </actionGroup> |
| 28 | + |
| 29 | + <!-- Validate drag&drop --> |
| 30 | + <dragAndDrop selector1="{{AdminProductCustomizableOptionsSection.dragCustomOptionRecord('2')}}" selector2="{{AdminProductCustomizableOptionsSection.dragCustomOptionRecord('1')}}" stepKey="moveCustomOptionRecord"/> |
| 31 | + <waitForPageLoad stepKey="waitForDragAndDrop"/> |
| 32 | + <see userInput="{{ProductOptionDropDown.title}}2" selector="{{AdminProductCustomizableOptionsSection.customOptionRecordTitle('1')}}" stepKey="seeCustomOptionRecord"/> |
| 33 | + |
| 34 | + <!-- Validate custom options records per page --> |
| 35 | + <scrollToTopOfPage stepKey="scrollToPerPageDropdown"/> |
| 36 | + <actionGroup ref="AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup" stepKey="openAndApplyCustomOptionsPerPageDropdown"> |
| 37 | + <argument name="perPageInputValue" value="1"/> |
| 38 | + </actionGroup> |
| 39 | + <waitForElementVisible selector="{{AdminProductCustomizableOptionsSection.customOptionsTableRecords}}" stepKey="waitForCustomOptionsToBeVisible"/> |
| 40 | + <seeNumberOfElements selector="{{AdminProductCustomizableOptionsSection.customOptionsTableRecords}}" userInput="1" stepKey="see1CustomOptionRecord"/> |
| 41 | + </test> |
| 42 | +</tests> |
0 commit comments