How to set the expect timeout for the playwright engine ? #2728
HugoImaios
started this conversation in
Artillery
Replies: 1 comment 10 replies
-
Hey @HugoImaios 👋 You should be able to do something like: import { expect as baseExpect } from '@playwright/test';
const configuredExpect = baseExpect.configure({
timeout: 10,
}); And then just use |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In playwright there is, along with timeout and navigation timeout, the expect timeout (https://playwright.dev/docs/test-timeouts#expect-timeout).
I've looked in artillery for a way to increase it instead of the default 5s of Playwright, but can't find it.
In playwright it can be set in the config file (so the equivalent in Artillery would be the yml config, maybe next to
defaultNavigationTimeout
?). I think it can also be set on a per-test basis, viatest.use
, but anyway we don't have this on artillery (we only havetest.step
available).If you have any clue to setting this expect timeout, let me know !
Have a nice day
Beta Was this translation helpful? Give feedback.
All reactions