Skip to content

Commit 61ef26a

Browse files
committed
message annotation correction
1 parent 9ebffc7 commit 61ef26a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docs/05-annotations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Use annotations in [meta](/docs/meta) and avoid them in features where possible.
2121
| [`@Context`](/docs#behavioural-rules-and-semantics) | StepDef | [v2.41.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v2.41.0) | Assigns *context* behavior to a step definition so it can only be called by *Given* steps |
2222
| [`@Action`](/docs#behavioural-rules-and-semantics) | StepDef | [v2.41.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v2.41.0) | Assigns *action* behavior to a step definition so it can only be called by *When* steps |
2323
| [`@Assertion`](/docs#behavioural-rules-and-semantics) | StepDef | [v2.41.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v2.41.0) | Assigns *assertion* behavior to a step definition so it can only be called by *Then* steps |
24-
| [`@Message`](/docs/assertions#message-annotation) | Step | [v3.31.12](https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.31.12) | Overrides the default error message for any failed step with a custom one |
24+
| [`@Message`](/docs/assertions#message-annotation) | Step | [v3.31.12](https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.31.12) | Overrides the default error message for any failed assertion |
2525
| [`@Try`](/docs/try-steps) | Step | [v3.11.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.11.0) | Instructs Gwen to ignore a failed step and continue procesing |
2626
| [`@Finally`](/docs/finally-steps) | Step | [v3.3.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.3.0) | Forces the last step in a Scenario to always execute even when prior ones fail or are skipped |
2727
| [`@Eager`](/docs/eager-or-lazy#eager) | Step | [v3.9.0](https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.9.0) | Immediately evaluates and assigns values to refereces in place instead of at each call site |

docs/18-assertions.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ Similarly, the following would perform a sustained assertion since the `@Sustain
9595
9696
`@Message` annotations can be used to override default error messages reported by failed assertions with custom messages to provide better meaning and context.
9797

98-
:::info Use anywhere
99-
Since [v4.11.2](https://github.com/gwen-interpreter/gwen-web/releases/tag/v4.11.2), The `@Message` annotation can be used to override errors in any Step (and not just assertion steps)
100-
:::
101-
10298
#### Example
10399

104100
Consider the following which checks that a form error should not be displayed on a page.

0 commit comments

Comments
 (0)