Skip to content

Commit 93654b8

Browse files
committed
Updated example code
1 parent 55ac3b8 commit 93654b8

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

docs/test/actions.md

Lines changed: 22 additions & 23 deletions
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

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

1290-
12911290
#### Example
12921291
```xml
12931292
<magentoCron stepKey="runStagingCronJobs" groups="staging"/>
@@ -1974,13 +1973,13 @@ Attribute|Type|Use|Description
19741973
#### Examples
19751974

19761975
```xml
1977-
<!-- Verify there are 10 `<div id="product" ... >...</div>` elements on the page. -->
1976+
<!-- Verify there are 10 `<div class="product" ... >...</div>` elements on the page. -->
19781977
<seeNumberOfElements userInput="10" selector="div.product" stepKey="seeTenProducts"/>
19791978
```
19801979

19811980
```xml
1982-
<!-- Verify there are between 5 and 10 `<div id="product" ... >...</div>` elements on the page. -->
1983-
<seeNumberOfElements userInput="[5, 10]" selector=".product" stepKey="seeFiveToTenProducts"/>
1981+
<!-- Verify there are between 5 and 10 `<div class="product" ... >...</div>` elements on the page. -->
1982+
<seeNumberOfElements parameterArray="[5, 10]" selector="div.product" stepKey="seeFiveToTenProducts"/>
19841983
```
19851984

19861985
### seeOptionIsSelected

0 commit comments

Comments
 (0)