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

slowMo does not exist in type 'Fixtures<{}, {}, PlaywrightTestOptions, PlaywrightWorkerOptions>' #6984

Closed
bondarchukm opened this issue Jun 9, 2021 · 3 comments · Fixed by #6991
Labels
feature-test-runner Playwright test specific issues

Comments

@bondarchukm
Copy link

Hi!
I'm trying to set up config (TypeScript) for test runner (1.12.0) as described here - https://playwright.dev/docs/test-configuration
But got the error for slowMo property -
Object literal may only specify known properties, and 'slowMo' does not exist in type 'Fixtures<{}, {}, PlaywrightTestOptions, PlaywrightWorkerOptions>'

Screenshot from 2021-06-09 12-38-08

@mxschmitt
Copy link
Member

Doing the following should work for your use-case:

{
  use: {
    launchOptions: {
      slowMo: 1234,
    }
  }
}

@bondarchukm
Copy link
Author

@mxschmitt
It works!
Thanks a lot for rapid reaction!

@mxschmitt
Copy link
Member

I will keep it open since the example seems broken: https://playwright.dev/docs/test-configuration#global-configuration

@mxschmitt mxschmitt reopened this Jun 9, 2021
@mxschmitt mxschmitt transferred this issue from microsoft/playwright-test Jun 9, 2021
@mxschmitt mxschmitt added feature-test-runner Playwright test specific issues v1.12 labels Jun 9, 2021
aslushnikov pushed a commit that referenced this issue Jun 9, 2021
aslushnikov added a commit that referenced this issue Jun 9, 2021
PR #6991 SHA 178489d

References #6984

Co-authored-by: Max Schmitt <max@schmitt.mx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-test-runner Playwright test specific issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants