Rayrun
← Back to Discord Forum

Generate visual comparison snapshots in Docker using pnpm

the instructed practice to generate visual comparison snapshots with docker is to mount a directory containing the tests and run an update command. this enables running browsers in the contained environment and write new snapshots to the local file system. this practice works well with npm/yarn but fails with pnpm as node_modules structured by pnpm point at a global store directory which isn't picked up along. resolving that issue requires patching with convoluted code. has anyone encountered this issue and made their way to the other side of the bridge nicely? btw found an "old" issue that might relate https://github.com/microsoft/playwright/issues/22899

This thread is trying to answer question "Has anyone encountered issues with generating visual comparison snapshots in Docker using pnpm and found a solution?"

0 replies
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.