Skip to content

Commit c0423df

Browse files
Minor changes in the document
1 parent 8b39c15 commit c0423df

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/data.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In this example:
2222
* `SimpleSubCategory` is an entity name.
2323
* `name` is a `<data>` key of the entity. The corresponding value will be assigned to `userInput` as a result.
2424

25-
The following is the usage of `<data>` entity in the `Magento/Customer/Test/Mftf/Test/AdminCustomersAllCustomersNavigateMenuTest.xml` test:
25+
The following is an example of the usage of `<data>` entity in the `Magento/Customer/Test/Mftf/Test/AdminCustomersAllCustomersNavigateMenuTest.xml` test:
2626

2727
```xml
2828
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToAllCustomerPage">
@@ -48,7 +48,7 @@ In this example:
4848
* `MAGENTO_ADMIN_USERNAME` is a name of an environment variable.
4949
The corresponding value will be assigned to `userInput` as a result.
5050

51-
The following is the usage of `_ENV` in the `Magento/Braintree/Test/Mftf/ActionGroup/AdminDeleteRoleActionGroup.xml` action group:
51+
The following is an example of the usage of `_ENV` in the `Magento/Braintree/Test/Mftf/ActionGroup/AdminDeleteRoleActionGroup.xml` action group:
5252

5353
```xml
5454
<fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteRoleSection.current_pass}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
@@ -69,7 +69,7 @@ In this example:
6969

7070
Learn more in [Credentials][].
7171

72-
The following is the usage of `_CREDS` in the `Magento/Braintree/Test/Mftf/Data/BraintreeData.xml` data entity:
72+
The following is an example of the usage of `_CREDS` in the `Magento/Braintree/Test/Mftf/Data/BraintreeData.xml` data entity:
7373

7474
```xml
7575
<entity name="MerchantId" type="merchant_id">
@@ -93,7 +93,7 @@ In this example:
9393
* `email` is a data key of the entity.
9494
The corresponding value will be assigned to `userInput` as a result.
9595

96-
The following is the usage of the persistant data in `Magento/Customer/Test/Mftf/Test/AdminCreateCustomerWithCountryUSATest.xml` test:
96+
The following is an example of the usage of the persistant data in `Magento/Customer/Test/Mftf/Test/AdminCreateCustomerWithCountryUSATest.xml` test:
9797

9898
```xml
9999
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterTheCustomerByEmail">
@@ -145,7 +145,7 @@ userInput="We'll email you an order confirmation with details and tracking info.
145145

146146
## Format
147147

148-
The format of `<data>` entity is:
148+
The format of the `<data>` entity is:
149149

150150
```xml
151151
<?xml version="1.0" encoding="UTF-8"?>
@@ -243,7 +243,7 @@ You can also call data from the xml definition of a `data` tag directly:
243243

244244
Attributes|Type|Use|Description
245245
---|---|---|---
246-
`name`|string|optional|Name of the `<entity>`. Camel case is used for the entity name.
246+
`name`|string|optional|Name of the `<entity>`. Use camel case for entity names.
247247
`type`|string|optional|Node containing the exact name of `<entity>` type. Used later to find specific Persistence Layer Model class. `type` in `<data>` can be whatever the user wants; There are no constraints. It is important when persisting data, depending on the `type` given, as it will try to match a metadata definition with the operation being done. Example: A `myCustomer` entity with `type="customer"`, calling `<createData entity="myCustomer"/>`, will try to find a metadata entry with the following attributes: `<operation dataType="customer" type="create">`.
248248
`deprecated`|string|optional|Used to warn about the future deprecation of the data entity. String will appear in Allure reports and console output at runtime.
249249

@@ -277,7 +277,7 @@ Attributes|Type|Use|Description
277277

278278
Example:
279279

280-
```
280+
```xml
281281
<var key="parent_id" entityType="category" entityKey="id" />
282282
```
283283

0 commit comments

Comments
 (0)