Rayrun
← Back to Discord Forum

When running tests via Github Actions toHaveScreenshot() does not make screenshot as itself

kateryna.qaposted in #help-playwright
Open in Discord
kateryna.qa

Hello, everyone! I have tests in which I need to compare some elements visually. For this purpose I am using toHaveScreenshot() method. When I have run tests locally it works correctly. But when I have run tests via GitHub Actions there are cases when screenshots are not made. Could you, please, advise, how to resolve this issue? Thanks!

screenshot.png

This thread is trying to answer question "How can the issue of toHaveScreenshot() not creating screenshots when tests are run via GitHub Actions be resolved?"

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.