Skip to content

tests e2e with Playwright#917

Open
MarionGiusti wants to merge 6 commits into
masterfrom
marion_e2e_playwright
Open

tests e2e with Playwright#917
MarionGiusti wants to merge 6 commits into
masterfrom
marion_e2e_playwright

Conversation

@MarionGiusti

Copy link
Copy Markdown
Collaborator

No description provided.

@MarionGiusti MarionGiusti marked this pull request as draft June 22, 2026 11:09
@MarionGiusti MarionGiusti force-pushed the marion_e2e_playwright branch 2 times, most recently from 70bc55d to 51b70e1 Compare June 23, 2026 14:07
@MarionGiusti MarionGiusti changed the title Marion e2e playwright tests e2e playwright Jun 23, 2026
@MarionGiusti MarionGiusti changed the title tests e2e playwright tests e2e with playwright Jun 23, 2026
@MarionGiusti MarionGiusti changed the title tests e2e with playwright tests e2e with Playwright Jun 23, 2026
@MarionGiusti MarionGiusti force-pushed the marion_e2e_playwright branch from 51b70e1 to 1cba4c6 Compare June 23, 2026 14:39
Comment thread .github/workflows/e2e.yml Outdated
Comment thread playwright.config.ts Outdated
Comment thread playwright.config.ts Outdated
@pgiraud

pgiraud commented Jun 25, 2026

Copy link
Copy Markdown
Member

Errors like: xxxx pixels (ratio 0.0x of all image pixels) are different. in failing tests are most probably due to tiny difference in the PlanNode.vue node type (nodeName) text due to rendered font. To be investigated.

Comment thread tests/e2e/plan.spec.ts Outdated

test('switches to dark mode', async ({ page }) => {
await page.getByTitle('Switch to dark mode').click();
await expect(page).toHaveScreenshot('plan_darkMode.png');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if an argument is needed here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t understand which argument you are referring to. page ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@MarionGiusti MarionGiusti force-pushed the marion_e2e_playwright branch 4 times, most recently from 20cafed to 2231fea Compare June 30, 2026 10:11
@MarionGiusti MarionGiusti marked this pull request as ready for review June 30, 2026 12:18
@pgiraud

pgiraud commented Jul 1, 2026

Copy link
Copy Markdown
Member

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.

@pgiraud pgiraud left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good so far.

Comment thread .github/workflows/e2e.yml Outdated
Comment thread .github/workflows/e2e.yml Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
@MarionGiusti MarionGiusti force-pushed the marion_e2e_playwright branch 7 times, most recently from e0d8855 to 3b50f5a Compare July 3, 2026 09:42
Comment thread .github/workflows/e2e.yml Outdated
Comment thread .github/workflows/e2e.yml Outdated
Comment thread .github/workflows/e2e.yml Outdated
Comment thread .github/workflows/e2e.yml Outdated
Comment thread src/components/Plan.vue Outdated
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.
@MarionGiusti MarionGiusti force-pushed the marion_e2e_playwright branch from 3b50f5a to 0f18ae9 Compare July 7, 2026 14:37
@pgiraud pgiraud force-pushed the marion_e2e_playwright branch from 8729d00 to f10afe9 Compare July 8, 2026 07:35
pgiraud added 2 commits July 8, 2026 09:36
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.
@pgiraud pgiraud force-pushed the marion_e2e_playwright branch 2 times, most recently from aa5bbdf to 69c34c1 Compare July 8, 2026 07:54
@pgiraud pgiraud force-pushed the marion_e2e_playwright branch from 69c34c1 to 25a2e3d Compare July 8, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants