Skip to content

Commit be85034

Browse files
authored
MQE-496: Unable to pass multiple ActionGroup arguments into parameterized selector
- Added SampleTests eamples with the problematic ActionGroup.
1 parent 83c43ff commit be85034

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/SampleTests/ActionGroup/SampleActionGroup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@
1515
<fillField selector="#foo" userInput="{{person.foo}}" mergeKey="fillField1"/>
1616
<fillField selector="#bar" userInput="{{person.bar}}" mergeKey="fillField2"/>
1717
</actionGroup>
18+
<actionGroup name="ValidateSlideOutPanelField">
19+
<arguments>
20+
<argument name="property" defaultValue=""/>
21+
</arguments>
22+
<see userInput="{{property.name}}" selector="{{ColumnSection.panelFieldLabel(property.section, property.fieldName, property.section, property.name)}}" mergeKey="seePropertyLabel"/>
23+
</actionGroup>
1824
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/SampleTests/Cest/AdvancedSampleCest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
<actionGroup ref="SampleActionGroup" mergeKey="actionGroup">
4949
<argument name="person" value="OverrideDefaultPerson"/>
5050
</actionGroup>
51+
52+
<actionGroup ref="ValidateSlideOutPanelField" mergeKey="seeAppearanceMinHeightProperty">
53+
<argument name="property" value="AppearanceMinHeightProperty"/>
54+
</actionGroup>
5155
</test>
5256
</cest>
5357
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/SampleTests/Data/SampleData.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@
1919
<data key="foo">fizz</data>
2020
<data key="bar">buzz</data>
2121
</entity>
22+
<entity name="AppearanceMinHeightProperty" type="min_height_property">
23+
<data key="name">Minimum Height</data>
24+
<data key="section">appearance</data>
25+
<data key="fieldName">min_height</data>
26+
</entity>
2227
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/SampleTests/Section/SampleSection.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
<element name="threeParamElement" type="button" selector="#{{var1}}-{{var2}} .{{var3}}" parameterized="true"/>
1515
<element name="timeoutElement" type="button" selector="#foo" timeout="30"/>
1616
</section>
17+
<section name="ColumnSection">
18+
<element name="panelFieldLabel" type="text" selector='//div[@data-index="{{arg1}}"]/descendant::div[@data-index="{{arg2}}"]/label | //div[@data-index="{{arg3}}"]/descendant::*[@class="admin__field-label"]/span[text()="{{arg4}}"]' parameterized="true" />
19+
</section>
1720
</config>

0 commit comments

Comments
 (0)