File tree Expand file tree Collapse file tree 5 files changed +20
-19
lines changed
app/code/Magento/Catalog/Test/Mftf
AdminProductCustomizableOptionsSection Expand file tree Collapse file tree 5 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" AdminOpenAndApplyCustomOptionValuesPerPageActionGroup " >
11
+ <actionGroup name =" AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup " >
12
12
<annotations >
13
13
<description >Open the custom option drop down section and assign the user defined custom value</description >
14
14
</annotations >
15
15
<arguments >
16
16
<argument name =" perPageInputValue" type =" string" defaultValue =" 1" />
17
17
</arguments >
18
18
19
- <click selector =" {{AdminProductGridPaginationSection .perPageDropdown}}" stepKey =" clickProductPerPageDropdown" />
20
- <click selector =" {{AdminProductGridPaginationSection .perPageOption('Custom')}}" stepKey =" selectCustomPerPage" />
21
- <fillField selector =" {{AdminProductGridPaginationSection .perPageInput}}" userInput =" {{perPageInputValue}}" stepKey =" fillCustomPerPage" />
22
- <click selector =" {{AdminProductGridPaginationSection .perPageApplyInput}}" stepKey =" applyCustomPerPage" />
19
+ <click selector =" {{AdminProductCustomOptionsPaginationSection .perPageDropdown}}" stepKey =" clickProductPerPageDropdown" />
20
+ <click selector =" {{AdminProductCustomOptionsPaginationSection .perPageOption('Custom')}}" stepKey =" selectCustomPerPage" />
21
+ <fillField selector =" {{AdminProductCustomOptionsPaginationSection .perPageInput}}" userInput =" {{perPageInputValue}}" stepKey =" fillCustomPerPage" />
22
+ <click selector =" {{AdminProductCustomOptionsPaginationSection .perPageApplyInput}}" stepKey =" applyCustomPerPage" />
23
23
<waitForPageLoad stepKey =" waitForPageRefreshCustomPerPage" />
24
24
</actionGroup >
25
25
</actionGroups >
Original file line number Diff line number Diff line change 16
16
<argument name =" perPageInputValue" type =" string" defaultValue =" 1" />
17
17
</arguments >
18
18
19
- <click selector =" {{AdminProductCustomOptionsPaginationSection .perPageDropdown}}" stepKey =" clickCustomOptionsPerPageDropdown " />
20
- <click selector =" {{AdminProductCustomOptionsPaginationSection .perPageOption('Custom')}}" stepKey =" selectCustomOptionsPerPage " />
21
- <fillField selector =" {{AdminProductCustomOptionsPaginationSection .perPageInput}}" userInput =" {{perPageInputValue}}" stepKey =" fillCustomOptionsPerPage " />
22
- <click selector =" {{AdminProductCustomOptionsPaginationSection .perPageApplyInput}}" stepKey =" applyCustomOptionsPerPage " />
23
- <waitForPageLoad stepKey =" waitForPageRefreshCustomOptionsPerPage " />
19
+ <click selector =" {{AdminProductGridPaginationSection .perPageDropdown}}" stepKey =" clickProductPerPageDropdown " />
20
+ <click selector =" {{AdminProductGridPaginationSection .perPageOption('Custom')}}" stepKey =" selectCustomPerPage " />
21
+ <fillField selector =" {{AdminProductGridPaginationSection .perPageInput}}" userInput =" {{perPageInputValue}}" stepKey =" fillCustomPerPage " />
22
+ <click selector =" {{AdminProductGridPaginationSection .perPageApplyInput}}" stepKey =" applyCustomPerPage " />
23
+ <waitForPageLoad stepKey =" waitForPageRefreshCustomPerPage " />
24
24
</actionGroup >
25
25
</actionGroups >
Original file line number Diff line number Diff line change 7
7
-->
8
8
9
9
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
- xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminProductCustomOptionsPaginationSection" >
12
- <element name =" perPageDropdown" type =" select" selector =" .admin__control-table-pagination .selectmenu-toggle " />
12
+ <element name =" perPageDropdown" type =" select" selector =" .admin__control-table-pagination .selectmenu" />
13
13
<element name =" perPageOption" type =" button" selector =" //div[@class='admin__control-table-pagination']//div[@class='selectmenu-items _active']//li//button[text()='{{label}}']" parameterized =" true" />
14
14
<element name =" perPageInput" type =" input" selector =" //div[@class='admin__control-table-pagination']//div[@class='selectmenu-items _active']//li//div[@class='selectmenu-item-edit']//input" />
15
15
<element name =" perPageApplyInput" type =" button" selector =" //div[@class='admin__control-table-pagination']//div[@class='selectmenu-items _active']//li//div[@class='selectmenu-item-edit']//button" />
Original file line number Diff line number Diff line change 57
57
<element name =" optionSku" type =" input" selector =" //*[@data-index='custom_options']//*[@data-index='options']/tbody/tr//*[@name='product[options][{{index}}][sku]']" parameterized =" true" />
58
58
<element name =" optionFileExtensions" type =" input" selector =" //*[@data-index='custom_options']//*[@data-index='options']/tbody/tr//*[@name='product[options][{{index}}][file_extension]']" parameterized =" true" />
59
59
<element name =" importOptions" type =" button" selector =" //button[@data-index='button_import']" timeout =" 30" />
60
- <element name =" customOptionValuesTableRows " type =" button" selector =" .admin__dynamic-rows[data-index='values'] tr.data-row" timeout =" 30" />
60
+ <element name =" customOptionTableRows " type =" button" selector =" .admin__dynamic-rows[data-index='values'] tr.data-row" timeout =" 30" />
61
61
<element name =" customOptionsTableRecords" type =" button" selector =" .admin__dynamic-rows[data-index='options']>tbody>tr.data-row" timeout =" 30" />
62
62
</section >
63
63
</sections >
Original file line number Diff line number Diff line change 50
50
<argument name =" secondOption" value =" ProductOptionValueDropdown2" />
51
51
</actionGroup >
52
52
53
- <!-- Validate custom option values dynamic rows per page -->
54
- <actionGroup ref =" AdminOpenAndApplyCustomOptionValuesPerPageActionGroup " stepKey =" openAndApplyPerPageDropdown" >
53
+ <!-- Validate custom options dynamic rows per page -->
54
+ <actionGroup ref =" AdminOpenAndApplyCustomOptionsPerPageActionGroup " stepKey =" openAndApplyPerPageDropdown" >
55
55
<argument name =" perPageInputValue" value =" 1" />
56
56
</actionGroup >
57
- <waitForElementVisible selector =" {{AdminProductCustomizableOptionsSection.customOptionValuesTableRows }}" stepKey =" waitForRowsToBeVisible" />
58
- <seeNumberOfElements selector =" {{AdminProductCustomizableOptionsSection.customOptionValuesTableRows }}" userInput =" 1" stepKey =" see4RowsOfOptions" />
57
+ <waitForElementVisible selector =" {{AdminProductCustomizableOptionsSection.customOptionTableRows }}" stepKey =" waitForRowsToBeVisible" />
58
+ <seeNumberOfElements selector =" {{AdminProductCustomizableOptionsSection.customOptionTableRows }}" userInput =" 1" stepKey =" see4RowsOfOptions" />
59
59
60
60
<!-- Create a second custom option with 2 values -->
61
61
<actionGroup ref =" AdminCreateCustomDropDownOptionsActionGroup" stepKey =" createSecondCustomOption" >
64
64
<argument name =" secondOption" value =" ProductOptionValueDropdown2" />
65
65
</actionGroup >
66
66
67
- <!-- Validate custom options per page -->
68
- <actionGroup ref =" AdminOpenAndApplyCustomOptionsPerPageActionGroup" stepKey =" openAndApplyCustomOptionsPerPageDropdown" >
67
+ <!-- Validate custom options records per page -->
68
+ <scrollToTopOfPage stepKey =" scrollToPerPageDropdown" />
69
+ <actionGroup ref =" AdminOpenAndApplyCustomOptionRecordsPerPageActionGroup" stepKey =" openAndApplyCustomOptionsPerPageDropdown" >
69
70
<argument name =" perPageInputValue" value =" 1" />
70
71
</actionGroup >
71
72
<waitForElementVisible selector =" {{AdminProductCustomizableOptionsSection.customOptionsTableRecords}}" stepKey =" waitForCustomOptionsToBeVisible" />
You can’t perform that action at this time.
0 commit comments