Skip to content

Commit 130df3e

Browse files
authored
fix: Clarify scenario descriptions in context merging feature (#304)
<!-- Please use this template for your pull request. --> <!-- Please use the sections that you need and delete other sections --> ## This PR <!-- add the description of the PR here --> This pull request includes updates to the `specification/assets/gherkin/contextMerging.feature` file to improve the clarity of scenario descriptions by specifying the context (transaction, hook, or both) in which the context entries are added or overwritten. Changes to scenario descriptions: * Updated the scenario description to specify that the context entry is added for a transaction. * Updated the scenario description to specify that the context entry is added for a hook. * Updated the scenario description to specify that the context entry is added for both a transaction and a hook. * Updated the scenario outline description to specify that the context entry overwrites values for a transaction. * Updated the scenario outline description to specify that the context entry overwrites values for a hook. * Updated the scenario outline description to specify that the context entry overwrites values for both a transaction and a hook. ### Related Issues <!-- add here the GitHub issue that this PR resolves if applicable --> Fixes #303 Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
1 parent aad6193 commit 130df3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

specification/assets/gherkin/contextMerging.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Context merging precedence
3434
| Before Hooks |
3535

3636
@transaction
37-
Scenario: A context entry is added to each level with different keys
37+
Scenario: For a transaction, a context entry is added to each level with different keys
3838
Given A context entry with key "API" and value "API value" is added to the "API" level
3939
And A context entry with key "Transaction" and value "Transaction value" is added to the "Transaction" level
4040
And A context entry with key "Client" and value "Client value" is added to the "Client" level
@@ -46,7 +46,7 @@ Feature: Context merging precedence
4646
And The merged context contains an entry with key "Invocation" and value "Invocation value"
4747

4848
@hooks
49-
Scenario: A context entry is added to each level with different keys
49+
Scenario: For a hook, a context entry is added to each level with different keys
5050
Given A context entry with key "API" and value "API value" is added to the "API" level
5151
And A context entry with key "Client" and value "Client value" is added to the "Client" level
5252
And A context entry with key "Invocation" and value "Invocation value" is added to the "Invocation" level
@@ -58,7 +58,7 @@ Feature: Context merging precedence
5858
And The merged context contains an entry with key "Before Hooks" and value "Before Hooks value"
5959

6060
@hooks @transaction
61-
Scenario: A context entry is added to each level with different keys
61+
Scenario: For a transaction and a hook, a context entry is added to each level with different keys
6262
Given A context entry with key "API" and value "API value" is added to the "API" level
6363
And A context entry with key "Transaction" and value "Transaction value" is added to the "Transaction" level
6464
And A context entry with key "Client" and value "Client value" is added to the "Client" level
@@ -72,7 +72,7 @@ Feature: Context merging precedence
7272
And The merged context contains an entry with key "Before Hooks" and value "Before Hooks value"
7373

7474
@transaction
75-
Scenario Outline: A context entry in one level overwrites values with the same key from preceding levels
75+
Scenario Outline: For a transaction, a context entry in one level overwrites values with the same key from preceding levels
7676
Given A table with levels of increasing precedence
7777
| API |
7878
| Transaction |
@@ -90,7 +90,7 @@ Feature: Context merging precedence
9090
| Invocation |
9191

9292
@hooks
93-
Scenario Outline: A context entry in one level overwrites values with the same key from preceding levels
93+
Scenario Outline: For a hook, a context entry in one level overwrites values with the same key from preceding levels
9494
Given A table with levels of increasing precedence
9595
| API |
9696
| Client |
@@ -108,7 +108,7 @@ Feature: Context merging precedence
108108
| Before Hooks |
109109

110110
@hooks @transaction
111-
Scenario Outline: A context entry in one level overwrites values with the same key from preceding levels
111+
Scenario Outline: For a transaction and a hook, context entry in one level overwrites values with the same key from preceding levels
112112
Given A table with levels of increasing precedence
113113
| API |
114114
| Transaction |

0 commit comments

Comments
 (0)