Skip to content

Commit a38f111

Browse files
committed
Handle error message overrides at StepException level
1 parent 5f1def2 commit a38f111

File tree

3 files changed

+1763
-2016
lines changed

3 files changed

+1763
-2016
lines changed

docs/18-assertions.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ 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+
98102
#### Example
99103

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "^3.7.0",
18-
"@docusaurus/preset-classic": "^3.7.0",
17+
"@docusaurus/core": "^3.8.1",
18+
"@docusaurus/preset-classic": "^3.8.1",
1919
"@mdx-js/react": "^3.0.1",
2020
"@svgr/webpack": "^8.1.0",
2121
"clsx": "^2.1.0",

0 commit comments

Comments
 (0)