Skip to content

Commit 70c442f

Browse files
committed
MAGETWO-94836: Automate with MFTF Filter shared catalogs by 'Created By' field
1 parent 6b109f4 commit 70c442f

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

app/code/Magento/User/Test/Mftf/Data/UserData.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
1111
<entity name="admin" type="user">
1212
<data key="email">admin@magento.com</data>
1313
<data key="password">admin123</data>
@@ -23,4 +23,18 @@
2323
<data key="is_active">true</data>
2424
<data key="current_password">123123q</data>
2525
</entity>
26+
<entity name="Admin3" type="user">
27+
<data key="username" unique="suffix">admin3</data>
28+
<data key="firstname">admin3</data>
29+
<data key="lastname">admin3</data>
30+
<data key="email" unique="prefix">admin3WebUser@example.com</data>
31+
<data key="password">123123q</data>
32+
<data key="password_confirmation">123123q</data>
33+
<data key="interface_local">en_US</data>
34+
<data key="is_active">true</data>
35+
<data key="current_password">123123q</data>
36+
<array key="roles">
37+
<item>1</item>
38+
</array>
39+
</entity>
2640
</entities>

app/code/Magento/User/Test/Mftf/Metadata/user-meta.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
1010
<operation name="CreateUser" dataType="user" type="create"
1111
auth="adminFormKey" url="/admin/user/save/" method="POST" successRegex="/messages-message-success/" returnRegex="" >
1212
<contentType>application/x-www-form-urlencoded</contentType>
@@ -19,5 +19,8 @@
1919
<field key="interface_locale">string</field>
2020
<field key="is_active">boolean</field>
2121
<field key="current_password">string</field>
22+
<array key="roles">
23+
<value>string</value>
24+
</array>
2225
</operation>
2326
</operations>

0 commit comments

Comments
 (0)