Skip to content

Implement snapshots in Playwright#2783

Open
mleray wants to merge 1 commit intomainfrom
playwright-snapshots
Open

Implement snapshots in Playwright#2783
mleray wants to merge 1 commit intomainfrom
playwright-snapshots

Conversation

@mleray
Copy link
Contributor

@mleray mleray commented Oct 17, 2025

Summary

This could be used for visual regression testing.

Docs: https://css-tricks.com/automated-visual-regression-testing-with-playwright/

Testing

On local, you can run npx playwright test tests/e2e/snapshots.spec.j. It is expected to fail the first time (since it doesn't have snapshots yet) but on second try it should work.
If you then make a change on the homepage for example and re-run the test, it should fail again since the snapshots are now different.

@mleray mleray self-assigned this Oct 17, 2025
@mleray mleray force-pushed the playwright-snapshots branch from 3a2108c to 61ceb09 Compare October 17, 2025 10:30
@mleray mleray marked this pull request as ready for review October 17, 2025 11:27
planet-4 added a commit to greenpeace/planet4-test-telesto that referenced this pull request Oct 17, 2025
/unhold 470165da-39b1-4892-bc75-f8db00f13e16
@planet-4
Copy link
Contributor

planet-4 commented Oct 17, 2025

Test instance is ready 🚀

🌑 telesto | admin | blocks report | CircleCI | composer-local.json

⌚ 2025.10.22 13:20:17

planet-4 added a commit to greenpeace/planet4-test-telesto that referenced this pull request Oct 17, 2025
/unhold 959307c3-4e7d-4884-8fd2-afeaf5c1b7fa
@mleray mleray force-pushed the playwright-snapshots branch from 61ceb09 to 287198d Compare October 20, 2025 10:11
planet-4 added a commit to greenpeace/planet4-test-telesto that referenced this pull request Oct 20, 2025
/unhold 56b876e1-d1d0-4fd1-b50a-fb8bb033c941
planet-4 added a commit to greenpeace/planet4-test-telesto that referenced this pull request Oct 21, 2025
/unhold a3dd5dce-5791-4d3b-bd13-c29958a74bb1
@mleray mleray force-pushed the playwright-snapshots branch from 287198d to 4a94c16 Compare October 22, 2025 12:54
planet-4 added a commit to greenpeace/planet4-test-telesto that referenced this pull request Oct 22, 2025
/unhold 6ce1db53-82fd-4965-a8ff-f43c240b9d1b
@mleray mleray force-pushed the playwright-snapshots branch from 4a94c16 to 7ebc0f8 Compare October 22, 2025 12:59
This could be used for visual regression testing
@mleray mleray force-pushed the playwright-snapshots branch from 7ebc0f8 to d7349ae Compare October 22, 2025 13:11
planet-4 added a commit to greenpeace/planet4-test-telesto that referenced this pull request Oct 22, 2025
/unhold 4064d2fb-4cb3-4430-9a1b-4a154de041fd
@mleray mleray added the PoC Pull requests that are defined as a proof of concept label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PoC Pull requests that are defined as a proof of concept [Test Env] telesto

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants