diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 916ecea033..fc6c201897 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -3160,7 +3160,7 @@ Things to keep in mind: * The execution time of the handler counts towards the timeout of the action/assertion that executed the handler. If your handler takes too long, it might cause timeouts. * You can register multiple handlers. However, only a single handler will be running at a time. Make sure the actions within a handler don't depend on another handler. -:::danger[Warning] +:::warning[Warning] Running the handler will alter your page state mid-test. For example it will change the currently focused element and move the mouse. Make sure that actions that run after the handler are self-contained and do not rely on the focus and mouse state being unchanged.