Skip to content

Commit 3e71cd5

Browse files
committed
MQE-1561: CreateData action must be able to parse Data entity which references another data
- Documentation update
1 parent 6d6461b commit 3e71cd5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/data.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ The following is an example of a call in test:
173173

174174
This action inputs data from the `name` of the `_defaultCategory` entity (for example, `simpleCategory598742365`) into the field with the locator defined in the selector of the `categoryNameInput` element of the `AdminCategoryBasicFieldSection`.
175175

176+
You can also call data from the xml definition of a data tag itself:
177+
178+
```xml
179+
<entity name="NewAdminUser" type="user">
180+
<data key="username" unique="suffix">admin</data>
181+
<data key="current_password">{{AnotherUser.current_password}}</data> <!-- Data from another entity -->
182+
<data key="current_password">{{_ENV.MAGENTO_ADMIN_PASSWORD}}</data> <!-- ENV file reference -->
183+
</entity>
184+
```
185+
176186
## Reference
177187

178188
### entities {#entities-tag}

0 commit comments

Comments
 (0)