File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
app/code/Magento/ConfigurableProduct/Test/Mftf Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 130
130
<click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" clickOnSaveButton2" />
131
131
<click selector =" {{AdminChooseAffectedAttributeSetPopup.confirm}}" stepKey =" clickOnConfirmInPopup" />
132
132
</actionGroup >
133
+
134
+ <actionGroup name =" createConfigurationsForTwoAttribute" extends =" generateConfigurationsByAttributeCode" >
135
+ <arguments >
136
+ <argument name =" secondAttributeCode" type =" string" />
137
+ </arguments >
138
+ <remove keyForRemoval =" clickOnSelectAll" />
139
+ <remove keyForRemoval =" clickFilters" />
140
+ <remove keyForRemoval =" fillFilterAttributeCodeField" />
141
+ <remove keyForRemoval =" clickApplyFiltersButton" />
142
+ <remove keyForRemoval =" clickOnFirstCheckbox" />
143
+
144
+ <click selector =" {{AdminCreateProductConfigurationsPanel.attributeCheckbox(attributeCode)}}" stepKey =" clickOnFirstAttributeCheckbox" after =" clickCreateConfigurations" />
145
+ <click selector =" {{AdminCreateProductConfigurationsPanel.attributeCheckbox(secondAttributeCode)}}" stepKey =" clickOnSecondAttributeCheckbox" after =" clickOnFirstAttributeCheckbox" />
146
+ <grabTextFrom selector =" {{AdminCreateProductConfigurationsPanel.defaultLabel(attributeCode)}}" stepKey =" grabFirstAttributeDefaultLabel" after =" clickOnSecondAttributeCheckbox" />
147
+ <grabTextFrom selector =" {{AdminCreateProductConfigurationsPanel.defaultLabel(secondAttributeCode)}}" stepKey =" grabSecondAttributeDefaultLabel" after =" grabFirstAttributeDefaultLabel" />
148
+ <click selector =" {{AdminCreateProductConfigurationsPanel.selectAllByAttribute({$grabFirstAttributeDefaultLabel})}}" stepKey =" clickOnSelectAllForFistAttribute" after =" clickOnNextButton1" />
149
+ <click selector =" {{AdminCreateProductConfigurationsPanel.selectAllByAttribute({$grabSecondAttributeDefaultLabel})}}" stepKey =" clickOnSelectAllForSecondAttribute" after =" clickOnSelectAllForFistAttribute" />
150
+ <click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" clickOnSaveButton2" />
151
+ <click selector =" {{AdminChooseAffectedAttributeSetPopup.confirm}}" stepKey =" clickOnConfirmInPopup" />
152
+ </actionGroup >
133
153
</actionGroups >
Original file line number Diff line number Diff line change 16
16
<element name =" applyFilters" type =" button" selector =" button[data-action='grid-filter-apply']" timeout =" 30" />
17
17
<element name =" firstCheckbox" type =" input" selector =" tr[data-repeat-index='0'] .admin__control-checkbox" />
18
18
<element name =" id" type =" text" selector =" //tr[contains(@data-repeat-index, '0')]/td[2]/div" />
19
+ <element name =" attributeCheckbox" type =" checkbox" selector =" //div[contains(text(), '{{arg}}')]/ancestor::tr//input[@data-action='select-row']" parameterized =" true" />
20
+ <element name =" defaultLabel" type =" text" selector =" //div[contains(text(), '{{arg}}')]/ancestor::tr//td[3]/div[@class='data-grid-cell-content']" parameterized =" true" />
19
21
20
22
<element name =" selectAll" type =" button" selector =" .action-select-all" />
21
23
<element name =" selectAllByAttribute" type =" button" selector =" //div[@data-attribute-title='{{attr}}']//button[contains(@class, 'action-select-all')]" parameterized =" true" />
You can’t perform that action at this time.
0 commit comments