Skip to content

Commit 328d95a

Browse files
committed
chore: replace when by given
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 3388c9f commit 328d95a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ vendor/bin/behat -dl
4848
```
4949

5050
```gherkin
51-
When as user :user
52-
When user :user exists
53-
When sending :verb to :url
54-
When the response should be a JSON array with the following mandatory values
55-
When /^set the display name of user "([^"]*)" to "([^"]*)"$/
56-
When /^set the email of user "([^"]*)" to "([^"]*)"$/
57-
When sending :verb to ocs :url
58-
When the response should have a status code :code
59-
When fetch field :path from prevous JSON response
60-
When the response should contain the initial state :name with the following values:
61-
When the response should contain the initial state :name json that match with:
62-
When the following :appId app config is set
51+
Given as user :user
52+
Given user :user exists
53+
Given sending :verb to :url
54+
Given the response should be a JSON array with the following mandatory values
55+
Given /^set the display name of user "([^"]*)" to "([^"]*)"$/
56+
Given /^set the email of user "([^"]*)" to "([^"]*)"$/
57+
Given sending :verb to ocs :url
58+
Given the response should have a status code :code
59+
Given fetch field :path from prevous JSON response
60+
Given the response should contain the initial state :name with the following values:
61+
Given the response should contain the initial state :name json that match with:
62+
Given the following :appId app config is set
6363
```
6464

6565
## Tips
@@ -69,7 +69,7 @@ To send a json value as string, prefix the json string with (string)
6969

7070
**Example**:
7171
```gherkin
72-
When sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/appname/propertyname"
72+
Given sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/appname/propertyname"
7373
| value | (string){"enabled":true} |
7474
```
7575

@@ -78,7 +78,7 @@ To send a value as array, you can set a json string and the json string will be
7878

7979
**Example**:
8080
```gherkin
81-
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
81+
Given sending "post" to ocs "/apps/libresign/api/v1/request-signature"
8282
| status | 1 |
8383
| file | {"base64":""} |
8484
```
@@ -125,7 +125,7 @@ You can use [jq](https://jqlang.github.io/jq/manual/) expression casting to chec
125125
Example:
126126

127127
```gherkin
128-
When set the response to:
128+
Given set the response to:
129129
"""
130130
{
131131
"Foo": {

0 commit comments

Comments
 (0)