Skip to content

Commit d261332

Browse files
authored
Merge pull request #16 from magento-pangolin/bugfix
MQE-565: User are not able to use <actionGroup> after updating the la…
2 parents c724e5d + 16d73c4 commit d261332

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

dev/tests/verification/Resources/ActionGroupFunctionalCest.txt

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ class ActionGroupFunctionalCest
3535
$ReplacementPerson = DataObjectHandler::getInstance()->getObject("ReplacementPerson");
3636
$this->createPersonParam = new DataPersistenceHandler($ReplacementPerson);
3737
$this->createPersonParam->createEntity();
38+
$I->fillField("#foo", "myData1");
39+
$I->fillField("#bar", "myData2");
40+
}
41+
42+
public function _after(AcceptanceTester $I)
43+
{
44+
$I->fillField("#foo", "myData1");
45+
$I->fillField("#bar", "myData2");
3846
}
3947

4048
/**

dev/tests/verification/TestModule/Cest/ActionGroupFunctionalCest.xml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</annotations>
1919
<before>
2020
<createData entity="ReplacementPerson" mergeKey="createPersonParam"/>
21+
<actionGroup ref="FunctionalActionGroup" mergeKey="beforeGroup"/>
2122
</before>
2223
<test name="BasicActionGroupTest">
2324
<amOnPage mergeKey="step1" url="/someUrl"/>
@@ -67,5 +68,8 @@
6768
<argument name="myArg" value="DefaultPerson"/>
6869
</actionGroup>
6970
</test>
71+
<after>
72+
<actionGroup ref="FunctionalActionGroup" mergeKey="afterGroup"/>
73+
</after>
7074
</cest>
7175
</config>

src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd

+9-3
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,24 @@
6969
</xs:complexType>
7070
<xs:complexType name="hookType">
7171
<xs:choice minOccurs="0" maxOccurs="unbounded">
72-
<xs:group ref="actionTypeTags"/>
72+
<xs:group ref="testTypeTags"/>
7373
</xs:choice>
7474
</xs:complexType>
7575
<xs:complexType name="testType">
7676
<xs:choice minOccurs="0" maxOccurs="unbounded">
77-
<xs:group ref="actionTypeTags" />
77+
<xs:group ref="testTypeTags" />
7878
<xs:element type="annotationsType" name="annotations" minOccurs="0"/>
79-
<xs:element type="actions" name="actionGroup" minOccurs="0"/>
8079
</xs:choice>
8180
<xs:attribute type="xs:string" name="name"/>
8281
<xs:attribute type="xs:boolean" name="remove" default="false"/>
8382
</xs:complexType>
83+
<xs:group name="testTypeTags">
84+
<xs:choice>
85+
<xs:group ref="actionTypeTags"/>
86+
<xs:element type="actions" name="actionGroup" minOccurs="0"/>
87+
</xs:choice>
88+
</xs:group>
89+
8490
<xs:group name="actionTypeTags">
8591
<xs:choice>
8692
<xs:group ref="dataOperationTags"/>

0 commit comments

Comments
 (0)