Skip to content

Commit ba76d4e

Browse files
committed
ACQE-8461: To check whether customizable options in simple product displaying in order while importing from other product.
- Used AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup in the test file and removed AdminClickOnCustomOptionsPaginationNextButtonActionGroup, AdminSetCustomOptionsPaginationActionGroup.
1 parent dd4f150 commit ba76d4e

File tree

3 files changed

+13
-56
lines changed

3 files changed

+13
-56
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminClickOnCustomOptionsPaginationNextButtonActionGroup.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminSetCustomOptionsPaginationActionGroup.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/code/Magento/Catalog/Test/Mftf/Test/AdminImportCustomOptionsBetweenProductsTest.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<features value="Catalog"/>
1414
<stories value="Import customizable options between products "/>
1515
<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."/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="AC-6349"/>
1919
<group value="catalog"/>
@@ -63,7 +63,7 @@
6363
<argument name="customOptionTitle" value="Option4"/>
6464
<argument name="customOptionType" value="Field"/>
6565
</actionGroup>
66-
<scrollToTopOfPage stepKey="scrollToTopOfPage2"/>
66+
<scrollToTopOfPage stepKey="scrollToTopOfThePage"/>
6767
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProductA"/>
6868
<!-- Step 6: Change the store view, and in customization option change the title -->
6969
<waitForElementClickable selector="{{AdminProductFormActionSection.changeStoreButton}}" stepKey="waitForStoreSwitch"/>
@@ -73,7 +73,7 @@
7373
<waitForElementClickable selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForAcceptStoreSwitch"/>
7474
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptStoreSwitch"/>
7575
<waitForPageLoad stepKey="waitForFrenchStoreView"/>
76-
<scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" x="0" y="-80" stepKey="scrollToCustomOptions"/>
76+
<scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToCustomOptions"/>
7777
<waitForElementClickable selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="waitForCustomizableOptions"/>
7878
<click selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="openCustomizableOptions"/>
7979
<actionGroup ref="AdminEditFieldTitleCustomOptionsActionGroup" stepKey="editOption1">
@@ -109,8 +109,11 @@
109109
<!--Step 10: Save product B-->
110110
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProductB"/>
111111
<!-- 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"/>
114117
</actionGroup>
115118
<!-- Step 11: Verify options in product B are in correct order and have correct titles -->
116119
<actionGroup ref="AdminAssertCustomOptionBasedOnPositionActionGroup" stepKey="seeOption1Title">
@@ -121,7 +124,11 @@
121124
<argument name="positionNumber" value="2"/>
122125
<argument name="title" value="Option2"/>
123126
</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"/>
125132
<actionGroup ref="AdminAssertCustomOptionBasedOnPositionActionGroup" stepKey="seeOption3Title">
126133
<argument name="positionNumber" value="1"/>
127134
<argument name="title" value="Option3"/>

0 commit comments

Comments
 (0)