Skip to content

Commit 2702cae

Browse files
Manjusha.SManjusha.S
Manjusha.S
authored and
Manjusha.S
committed
MQE-2021 : Added new attribute unique
1 parent caf6ec2 commit 2702cae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dev/tests/verification/Resources/DataActionsTest.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DataActionsTestCest
3232
$I->createEntity("createdInBefore", "hook", "entity", [], []); // stepKey: createdInBefore
3333
$I->updateEntity("createdInBefore", "hook", "entity",[]); // stepKey: updateInBefore
3434
$I->deleteEntity("createdInBefore", "hook"); // stepKey: deleteInBefore
35-
$customerFields['firstname'] = "foo61f9129fd15f1";
35+
$customerFields['lastname'] = "foo";
3636
$I->createEntity("customer", "hook", "Simple_Customer_Without_Address", [], $customerFields); // stepKey: customer
3737
$I->comment('[END BEFORE HOOK]');
3838
}

dev/tests/verification/TestModule/Test/DataActionsTest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<updateData entity="entity" createDataKey="createdInBefore" stepKey="updateInBefore"/>
1515
<deleteData createDataKey="createdInBefore" stepKey="deleteInBefore"/>
1616
<createData stepKey="customer" entity="Simple_Customer_Without_Address">
17-
<field key="firstname" unique="suffix" >foo</field>
17+
<field key="lastname">foo</field>
1818
</createData>
1919

2020
</before>
@@ -26,4 +26,4 @@
2626
<updateData entity="entity" createDataKey="createdInBefore" stepKey="updatedDataOutOfScope"/>
2727
<deleteData createDataKey="createdInBefore" stepKey="deleteDataOutOfScope"/>
2828
</test>
29-
</tests>
29+
</tests>

src/Magento/FunctionalTestingFramework/Test/etc/Actions/dataActions.xsd

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<xs:complexType name="additionalFieldType">
130130
<xs:simpleContent>
131131
<xs:extension base="xs:string">
132-
<xs:attribute type="xs:string" name="key" use="optional">
132+
<xs:attribute type="xs:string" name="key" use="required">
133133
<xs:annotation>
134134
<xs:documentation>xp
135135
Key attribute of data/value pair.

0 commit comments

Comments
 (0)