You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to add a playwright config file. But I could not get it to work.
The config file’s content looks like this:
import { defineConfig } from '@playwright/test';
export default defineConfig({
expect: {
/** Timeout for each test in milliseconds. */
timeout: 1234,
},
});
What i tried was:
Just put playwright.config.ts into the root folder as playwright’s docs say
add --require playwright.config.ts in cucumber.js
add a defineConfig call to the top of the custom-world.ts:
defineConfig({
expect: {
/** Timeout for each test in milliseconds. */
timeout: 1234,
},
});
The default value of expect.timeout is 5000. I have one test which takes longer as the default timeout. With all of the things i tried it always showed the error Timed out 5000ms waiting for expect(locator).toBeVisible(), which shows that my timeout 1234 did not reach playwright.
The text was updated successfully, but these errors were encountered:
You can specify timeout on a specific action. Sadly, the playwright team did not expose an option to set a timeout in the playwright library, only in playwright test runner, which is not used by this repository.
You might want to file an issue asking for it on their repository.
I tried to add a playwright config file. But I could not get it to work.
The config file’s content looks like this:
What i tried was:
--require playwright.config.ts
in cucumber.jsdefineConfig
call to the top of the custom-world.ts:The default value of
expect.timeout
is5000
. I have one test which takes longer as the default timeout. With all of the things i tried it always showed the errorTimed out 5000ms waiting for expect(locator).toBeVisible()
, which shows that my timeout1234
did not reach playwright.The text was updated successfully, but these errors were encountered: