Skip to content

chore: Port playwright e2e tests to Elixir client - #1016

Open
ftes wants to merge 11 commits into
software-mansion:mainfrom
ftes:upstream-pr
Open

ftes wants to merge 11 commits into
software-mansion:mainfrom
ftes:upstream-pr

Conversation

@ftes

@ftes ftes commented Nov 19, 2026 •

Copy link
Copy Markdown

tl;dr I'm preparing the next playwright_ex major version and ported your test suite to validate the RC.

Please feel free to close this PR without comment if you're not interested 🙂.

What changed?

  • Port the e2e tests from official Javascript to unofficial Elixir client, using the 1.65.0-rc.3 of playwright_ex

Why make these changes?

  • For you: Maintain a larger part of your codebase in Elixir.
  • For me: I'm validating the new RC by porting existing open source test suites to see if the playwright client is feature complete and performant.

Further notes

  • Timing: Currently, playwright_ex 1.65 is in RC phase. I chose to open the PR now anyway in case you want to have a look and possibly raise any comments.
  • I let Claude code do most of the port, and did some cursory review myself. If you're generally interested, I'm more than happy to do a more in-depth review myself up front.

ftes added 8 commits November 19, 2026 08:00
The browser tests run as ExUnit tests in test/e2e_pw (mix e2e), on Desktop Chrome and Firefox as before. The Playwright workflow runs them on a supported Elixir only, as playwright_ex needs 1.18 or later; the unit tests on Elixir 1.16 build without the dependency.
Move them from test/e2e_pw to e2e/, since Elixir 1.16 has no test_load_filters, and build the suite only on Elixir 1.18 or later. Run the Playwright workflow on ubuntu-24.04, as setup-beam doesn't know ubuntu-latest (26.04).
@ftes

ftes commented Nov 19, 2026

Copy link
Copy Markdown
Author

I've also got a PR lined up for voyager - if you're at all interested.

@GuzekAlan

Copy link
Copy Markdown
Member

Thank you for PR 😃 . This is a big change and we don't have capacity now to check it out. Please do create a PR to voyager if you already have it prepared. We will look into both of these later

@ftes

ftes commented Nov 20, 2026

Copy link
Copy Markdown
Author

You're most welcome! I'll drop that voyager PR, too.
Let me know if you have any further questions later on.

Maybe of interest for you also:
In response to a question from a plausible maintainer I checked which guarantees we can give for the Elixir port actually asserting the same things as the JS original.

By comparing the Playwright traces generated by JS and Elixir clients for this test suite you can get a good signal for test equivalence.

This branch has not been deployed

No deployments
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