|
13 | 13 | <features value="Catalog"/> |
14 | 14 | <stories value="Import customizable options between products "/> |
15 | 15 | <title value="Import customizable options from Product A to Product B and verify order "/> |
16 | | - <description value="Covers creation of two products, adding customizable options, changing titles in a second store view, importing options, and verifying order."/> |
| 16 | + <description value="This test case verifies whether customizable options in simple product displaying in order while importing from other product."/> |
17 | 17 | <severity value="MAJOR"/> |
18 | 18 | <testCaseId value="AC-6349"/> |
19 | 19 | <group value="catalog"/> |
|
63 | 63 | <argument name="customOptionTitle" value="Option4"/> |
64 | 64 | <argument name="customOptionType" value="Field"/> |
65 | 65 | </actionGroup> |
66 | | - <scrollToTopOfPage stepKey="scrollToTopOfPage2"/> |
| 66 | + <scrollToTopOfPage stepKey="scrollToTopOfThePage"/> |
67 | 67 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProductA"/> |
68 | 68 | <!-- Step 6: Change the store view, and in customization option change the title --> |
69 | 69 | <waitForElementClickable selector="{{AdminProductFormActionSection.changeStoreButton}}" stepKey="waitForStoreSwitch"/> |
|
73 | 73 | <waitForElementClickable selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForAcceptStoreSwitch"/> |
74 | 74 | <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptStoreSwitch"/> |
75 | 75 | <waitForPageLoad stepKey="waitForFrenchStoreView"/> |
76 | | - <scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" x="0" y="-80" stepKey="scrollToCustomOptions"/> |
| 76 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToCustomOptions"/> |
77 | 77 | <waitForElementClickable selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="waitForCustomizableOptions"/> |
78 | 78 | <click selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="openCustomizableOptions"/> |
79 | 79 | <actionGroup ref="AdminEditFieldTitleCustomOptionsActionGroup" stepKey="editOption1"> |
|
109 | 109 | <!--Step 10: Save product B--> |
110 | 110 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProductB"/> |
111 | 111 | <!-- Navigate to custom options and set pagination display--> |
112 | | - <actionGroup ref="AdminSetCustomOptionsPaginationActionGroup" stepKey="setCustomPageSize"> |
113 | | - <argument name="pageNumber" value="2"/> |
| 112 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToTheCustomOptions"/> |
| 113 | + <waitForElementClickable selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="waitForTheCustomizableOptions"/> |
| 114 | + <click selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="openTheCustomizableOptions"/> |
| 115 | + <actionGroup ref="AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup" stepKey="setCustomPageSize"> |
| 116 | + <argument name="perPageInputValue" value="2"/> |
114 | 117 | </actionGroup> |
115 | 118 | <!-- Step 11: Verify options in product B are in correct order and have correct titles --> |
116 | 119 | <actionGroup ref="AdminAssertCustomOptionBasedOnPositionActionGroup" stepKey="seeOption1Title"> |
|
121 | 124 | <argument name="positionNumber" value="2"/> |
122 | 125 | <argument name="title" value="Option2"/> |
123 | 126 | </actionGroup> |
124 | | - <actionGroup ref="AdminClickOnCustomOptionsPaginationNextButtonActionGroup" stepKey="clickOnNextPage"/> |
| 127 | + <!-- Click on custom options pagination next button--> |
| 128 | + <scrollTo selector="{{AdminProductCustomizableOptionsSection.paginationNextButton}}" x="0" y="-80" stepKey="scrollToPagination"/> |
| 129 | + <waitForElementClickable selector="{{AdminProductCustomizableOptionsSection.paginationNextButton}}" stepKey="waitForPaginationToBecomeActive"/> |
| 130 | + <click selector="{{AdminProductCustomizableOptionsSection.paginationNextButton}}" stepKey="clickNextButton"/> |
| 131 | + <waitForPageLoad stepKey="waitForPaginationToLoad"/> |
125 | 132 | <actionGroup ref="AdminAssertCustomOptionBasedOnPositionActionGroup" stepKey="seeOption3Title"> |
126 | 133 | <argument name="positionNumber" value="1"/> |
127 | 134 | <argument name="title" value="Option3"/> |
|
0 commit comments