这是indexloc提供的服务,不要输入任何密码
Skip to content

Docs: Turborepo 2.0 and playwright docker container #8386

@citypaul

Description

@citypaul

What is the improvement or update you wish to see?

I'm just adding this here so people can find it on Google, because my Playwright docker container started failing when I tried to upgrade to turborepo 2.0.

For those who are experiencing this issue:

  1) [chromium] › login.spec.ts:6:5 › user can login with correct details ──────────────────────────

    Error: browserType.launch: Executable doesn't exist at /github/home/.cache/ms-playwright/chromium-1117/chrome-linux/chrome
    ╔═════════════════════════════════════════════════════════════════════════╗
    ║ Looks like Playwright Test or Playwright was just installed or updated. ║
    ║ Please run the following command to download new browsers:              ║
    ║                                                                         ║
    ║     pnpm exec playwright install                                        ║
    ║                                                                         ║
    ║ <3 Playwright Team                                                      ║
    ╚═════════════════════════════════════════════════════════════════════════╝

When running with a setup using the playwright docker container (in my instance, running with mcr.microsoft.com/playwright:v1.44.1-jammy), the solution was to add:

PLAYWRIGHT_BROWSERS_PATH to globalEnv in your turbo.json file.

I'm not sure this needs to be added to the docs specifically or not, but I figured making a post here would make it easier for people who are googling to find a solution to the same issue.

Is there any context that might help us understand?

I'm just adding the above to make this issue googleable. If this isn't the right place, please let me know and I'll move it.

Does the docs page already exist? Please link to it.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions