Skip to content

Commit d632ab3

Browse files
authored
Merge pull request #582 from magento-devdocs/db_actions
Fixes a code example on the Actions page.
2 parents b918c10 + 93654b8 commit d632ab3

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

docs/test/actions.md

+22-23
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ This step can be referenced within the test using `conditionalClickStep1`.
2222

2323
The value format should met the following principles:
2424

25-
* Must be unique within [`<test>`](../test.md#test-tag).
26-
* Naming should be as descriptive as possible:
27-
* Describe the action performed.
28-
* Briefly describe the purpose.
29-
* Describe which data is in use.
30-
* Should be in camelCase with lowercase first letter.
31-
* Should be the last attribute of an element.
25+
* Must be unique within [`<test>`](../test.md#test-tag).
26+
* Naming should be as descriptive as possible:
27+
* Describe the action performed.
28+
* Briefly describe the purpose.
29+
* Describe which data is in use.
30+
* Should be in camelCase with lowercase first letter.
31+
* Should be the last attribute of an element.
3232

3333
### `before` and `after`
3434

@@ -142,25 +142,25 @@ Here, [`<click>`](#click) performs a click on a button that can be found by the
142142

143143
The following test actions return a variable:
144144

145-
* [grabAttributeFrom](#grabattributefrom)
146-
* [grabCookie](#grabcookie)
147-
* [grabFromCurrentUrl](#grabfromcurrenturl)
148-
* [grabMultiple](#grabmultiple)
149-
* [grabPageSource](#grabpagesource)
150-
* [grabTextFrom](#grabtextfrom)
151-
* [grabValueFrom](#grabvaluefrom)
152-
* [executeJS](#executejs)
145+
* [grabAttributeFrom](#grabattributefrom)
146+
* [grabCookie](#grabcookie)
147+
* [grabFromCurrentUrl](#grabfromcurrenturl)
148+
* [grabMultiple](#grabmultiple)
149+
* [grabPageSource](#grabpagesource)
150+
* [grabTextFrom](#grabtextfrom)
151+
* [grabValueFrom](#grabvaluefrom)
152+
* [executeJS](#executejs)
153153

154154
Learn more in [Using data returned by test actions](../data.md#use-data-returned-by-test-actions).
155155

156156
## Actions handling data entities
157157

158158
The following test actions handle data entities using [metadata](../metadata.md):
159159

160-
* [createData](#createdata)
161-
* [deleteData](#deletedata)
162-
* [updateData](#updatedata)
163-
* [getData](#getdata)
160+
* [createData](#createdata)
161+
* [deleteData](#deletedata)
162+
* [updateData](#updatedata)
163+
* [getData](#getdata)
164164

165165
Learn more in [Handling a REST API response](../metadata.md#rest-response).
166166

@@ -1289,7 +1289,6 @@ Attribute|Type|Use|Description
12891289
`before`|string|optional| `stepKey` of action that must be executed next.
12901290
`after`|string|optional| `stepKey` of preceding action.
12911291

1292-
12931292
#### Example
12941293
```xml
12951294
<magentoCron stepKey="runStagingCronJobs" groups="staging"/>
@@ -1978,13 +1977,13 @@ Attribute|Type|Use|Description
19781977
#### Examples
19791978

19801979
```xml
1981-
<!-- Verify there are 10 `<div id="product" ... >...</div>` elements on the page. -->
1980+
<!-- Verify there are 10 `<div class="product" ... >...</div>` elements on the page. -->
19821981
<seeNumberOfElements userInput="10" selector="div.product" stepKey="seeTenProducts"/>
19831982
```
19841983

19851984
```xml
1986-
<!-- Verify there are between 5 and 10 `<div id="product" ... >...</div>` elements on the page. -->
1987-
<seeNumberOfElements userInput="[5, 10]" selector=".product" stepKey="seeFiveToTenProducts"/>
1985+
<!-- Verify there are between 5 and 10 `<div class="product" ... >...</div>` elements on the page. -->
1986+
<seeNumberOfElements parameterArray="[5, 10]" selector="div.product" stepKey="seeFiveToTenProducts"/>
19881987
```
19891988

19901989
### seeOptionIsSelected

0 commit comments

Comments
 (0)