Skip to content

Add Replay to the Playwright test suite #53298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from

Conversation

jaril
Copy link

@jaril jaril commented Aug 3, 2023

What?

This adds the Replay Playwright integration, so that we generate recordings of the playwright test suite.

Why?

These recordings (for example, avatar.spec.js) make it easier to debug test failures with time-travel debugging. Here's a quick demo of what this debugging workflow looks like in practice.

How?

Run CI with the PR. Replays are automatically recorded while the test suite runs, and are uploaded with replayio/action-upload. The logs of that step will contain the links to the uploaded replays.

To access them more conveniently on a per-run basis, you can join the gutenberg CI team in replay using this link.

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

https://www.loom.com/share/e0c85acce6ce4d029704e7b8bea7720b

@jaril jaril changed the title 0710 add replay Add Replay to the Playwright test suite Aug 3, 2023
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @jaril! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Aug 3, 2023
@jaril
Copy link
Author

jaril commented Aug 3, 2023

Heads up @kevin940726 🙋‍♂️

@Mamaduka Mamaduka added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Aug 3, 2023
@jaril jaril force-pushed the 0710-add-replay branch from 1023b99 to ee56bca Compare August 7, 2023 18:18
@Mamaduka
Copy link
Member

Mamaduka commented Oct 20, 2023

@WunderBart, @kevin940726, I think this would have been super handy with some recent flaky tests, that turned out to be actual bugs.

@WunderBart
Copy link
Member

WunderBart commented Oct 23, 2023

We already have the native Playwright Trace which seems to cover the same functionality. What would be the reason to use Replay over this?

@Mamaduka
Copy link
Member

Mamaduka commented Aug 4, 2025

Thanks for contributing, @jaril!

I'm going to close this PR as stale. The native traces seem to be just good enough for the project.

@Mamaduka Mamaduka closed this Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants