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

Is it possible to add slowmo to a specific test, and not to every test? #1829

Closed
snackattas opened this issue Mar 22, 2023 · 4 comments
Closed
Labels

Comments

@snackattas
Copy link

I have 1 test which uses a specific part of our site that has an aggressive rate limit, that playwright scripts normally hit...but with just a small slowmo of 1, we avoid the rate limit...but is there a way to configure JUST that test to use the slowmo, and not the whole suite?

@mxschmitt mxschmitt transferred this issue from microsoft/playwright-pytest Mar 24, 2023
@mxschmitt
Copy link
Member

mxschmitt commented Mar 24, 2023

Slowmo is as of today only configurable on the browser level, not context level. So its not possible.

We strongly recommend not using slowmo, since if a test is only passing with slomo, then its flaky by design.

Relates to microsoft/playwright#5900.
microsoft/playwright-pytest#146

@balazs-ita-epam
Copy link

What has become the solution for this issue? It seems to be a global problem how to handle it.

@balazs-ita-epam
Copy link

@mxschmitt
What do you recommend instead of slowmo then?

@mxschmitt
Copy link
Member

@balazs-ita-epam depends on the issue which you are encountering. I recommend filing a new bug report with more details, thanks!

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

No branches or pull requests

3 participants