tests e2e with Playwright#917
Conversation
70bc55d to
51b70e1
Compare
51b70e1 to
1cba4c6
Compare
|
Errors like: |
|
|
||
| test('switches to dark mode', async ({ page }) => { | ||
| await page.getByTitle('Switch to dark mode').click(); | ||
| await expect(page).toHaveScreenshot('plan_darkMode.png'); |
There was a problem hiding this comment.
I'm not sure if an argument is needed here.
There was a problem hiding this comment.
I don’t understand which argument you are referring to. page ?
There was a problem hiding this comment.
No, I was referring to the argument for toHaveScreenshot. As far as I understand, it's not mandatory and playwright will create a name automatically. To be checked.
20cafed to
2231fea
Compare
|
I think it would be nice to separate e2e and visual regression (those with snapshots) tests. The former shouldn't require docker, while the latter probably does. |
e0d8855 to
3b50f5a
Compare
Exclude e2e and node_modules from Vitest config. Ensure consistent results between local and CI by running visual tests inside a Playwright Docker container. Use Firefox only for Playwright in Docker.
3b50f5a to
0f18ae9
Compare
8729d00 to
f10afe9
Compare
Instead of a custom image. The Noto fonts are not installed but this should not be a problem. We also make sure that the test-results and playwright-report folders created by playwright to be owned by host user. The report is automatically available after running test. No need to run an extra command. This required to expose the 9323 port.
aa5bbdf to
69c34c1
Compare
69c34c1 to
25a2e3d
Compare
No description provided.