Currently, if your Playwright tests fail in CI, you get a very helpful message with a link to download the Artifact with stacktrace. However, it's not updated if a following test runs successfully, so the message still remains in the GitHub PR conversations, and is confusing.
Problem
Currently, if your Playwright tests fail in CI, you get a very helpful message with a link to download the Artifact with stacktrace. However, it's not updated if a following test runs successfully, so the message still remains in the GitHub PR conversations, and is confusing.
Here is a link to a PR that has this problem: https://github.com/WordPress/openverse-frontend/pull/1442#issuecomment-1127306745
Description
If the check is skipped because the tests pass, we can check if the fail message was posted before, and remove it.
Alternatives
Leave it as is, we'll get used to it :)
Additional context
I don't know how difficult it would be to remove the message.
Implementation