|
| 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 | + |
| 23 | + <!-- Create two more custom options with 2 values --> |
| 24 | + <actionGroup ref="AdminCreateCustomDropDownOptionsActionGroup" stepKey="createSecondCustomOption"> |
| 25 | + <argument name="customOptionName" value="{{ProductOptionDropDown.title}}2"/> |
| 26 | + <argument name="firstOption" value="ProductOptionValueDropdown1"/> |
| 27 | + <argument name="secondOption" value="ProductOptionValueDropdown2"/> |
| 28 | + </actionGroup> |
| 29 | + |
| 30 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToCustomOptionsSection"/> |
| 31 | + |
| 32 | + <actionGroup ref="AdminCreateCustomDropDownOptionsActionGroup" stepKey="createThirdCustomOption"> |
| 33 | + <argument name="customOptionName" value="{{ProductOptionDropDown.title}}3"/> |
| 34 | + <argument name="firstOption" value="ProductOptionValueDropdown1"/> |
| 35 | + <argument name="secondOption" value="ProductOptionValueDropdown2"/> |
| 36 | + </actionGroup> |
| 37 | + |
| 38 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToCustomOptionsSection2"/> |
| 39 | + |
| 40 | + <!-- Validate custom options records per page --> |
| 41 | + <actionGroup ref="AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup" stepKey="decreaseNumberOfCustomOptionsPerPage"> |
| 42 | + <argument name="perPageInputValue" value="1"/> |
| 43 | + </actionGroup> |
| 44 | + <waitForElementVisible selector="{{AdminProductCustomizableOptionsSection.customOptionsTableRecords}}" stepKey="waitForCustomOptionsToBeVisible"/> |
| 45 | + <seeNumberOfElements selector="{{AdminProductCustomizableOptionsSection.customOptionsTableRecords}}" userInput="1" stepKey="see1CustomOptionRecord"/> |
| 46 | + |
| 47 | + <!-- Multi page Drag&Drop --> |
| 48 | + <actionGroup ref="AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup" stepKey="increaseNumberOfCustomOptionsPerPage"> |
| 49 | + <argument name="perPageInputValue" value="3"/> |
| 50 | + </actionGroup> |
| 51 | + <waitForElementVisible selector="{{AdminProductCustomizableOptionsSection.customOptionsTableRecords}}" stepKey="waitForCustomOptionsToBeVisible2"/> |
| 52 | + |
| 53 | + <!-- Validate drag&drop --> |
| 54 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.customOptionRecordTitle('2')}}" stepKey="scrollToSeeThirdCustomOption"/> |
| 55 | + <dragAndDrop selector1="{{AdminProductCustomizableOptionsSection.dragCustomOptionRecord('3')}}" selector2="{{AdminProductCustomizableOptionsSection.dragCustomOptionRecord('2')}}" stepKey="moveCustomOptionRecord"/> |
| 56 | + <waitForPageLoad stepKey="waitForDragAndDrop"/> |
| 57 | + <see userInput="{{ProductOptionDropDown.title}}3" selector="{{AdminProductCustomizableOptionsSection.customOptionRecordTitle('2')}}" stepKey="seeCustomOptionRecord"/> |
| 58 | + |
| 59 | + <!-- Prepare fore after hook --> |
| 60 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToCustomOptionsSection3"/> |
| 61 | + </test> |
| 62 | +</tests> |
0 commit comments