Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Provide an option to disable all timeouts in debug mode #31646

Open
vitalets opened this issue Jul 11, 2024 · 2 comments
Open

[Feature]: Provide an option to disable all timeouts in debug mode #31646

vitalets opened this issue Jul 11, 2024 · 2 comments

Comments

@vitalets
Copy link
Contributor

🚀 Feature Request

Provide an option to disable all timeouts in debug mode. Otherwise, if there are pending promises (e.g. waitFor*), browser closes automatically.

Example

Imagine the following test:

 test('Check title', async ({ page }) => {
    const promise = page.waitForRequest(/Browsers/, { timeout: 5000 });
    await page.goto('https://playwright.dev');
    await promise;
});

When I run it as npx playwright test - everything ok.
When I run it as npx playwright test --debug - browser closes after 5 seconds. So I actually can't debug my test.

Motivation

I want to be able to debug my tests without any timeouts.

@lukpsaxo
Copy link
Contributor

@yury-s would you accept a PR?

@PhatLeQS
Copy link

looking for this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants