[dev]: switch from jest-playwright to playwright test
See original GitHub issueThe Playwright team has reached out and suggested we use playwright-test
instead of jest-playright
as our test runner. The APIs look similar but they offered to help/guide the migration.
Hi @jsjoeio! Would you consider trying playwright-test instead of jest-playwright? We at Playwright team believe that with the focused test runner it is possible to deliver better experience for e2e tests. If you are open to this, I can guide/help with the migration, as well as address the feedback on the test runner side 😄 Let me know if you are interested!
Originally posted: https://github.com/cdr/code-server/pull/3016#issuecomment-816329571
Note: I’ll probably start on this sometime this week and post thoughts and ask questions as I go here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Running tests using Jest & Playwright - GitHub
Jest Playwright integrates a functionality to start a server when running your test suite, like jest-puppeteer. It automatically closes the server when tests...
Read more >Using Jest with Playwright
In this blog post, we'll compare two Jest setups for creating and running end-to-end tests with Playwright.
Read more >Getting started with Playwright with Jest and TypeScript
We'll cover how to get up and running with Playwright using Jest as the test runner and how to set up the project...
Read more >javascript - How to move from jest with user journey like tests ...
So I used playwright + jest to build-up user journeys and integrated them in a CI/CD process. Since playwright created it's own test...
Read more >Run Jest Playwright tests on BrowserStack
Running your first Jest Playwright test suite on BrowserStack is super easy. Here's a quick start guide to help you get started with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jsjoeio Thank you for trying the previous experimental version, your feedback helped a lot! We’ve been working on the next version, and a new alpha is ready. If you enjoy
@playwright/test
so far, you should give this one a try. The new alpha is versioned0.1112.0-alpha1
.Here is a preview of the upcoming documentation and migration guide. However, since you have tried the experimental version (thank you!), migration will be a bit different for you:
test('title', options, func)
, you should now calltest.use(options)
to declare options for a file or a describe block.globalSetup
/globalTeardown
now lives in a separate file. More details about global hooks.Let me know if you are willing to try this, and send me all the questions.
Answering some of the older questions, based on the new version:
I guess this is a babel thing. We have bumped the babel version, let me know if this still happens.
This is done by default. Each test is isolated from others.
This is not done yet. You should get videos per test in
test-results/test-file-test-name
directories.Not done yet.
No significant progress on reporters, but we’ll focus on them soon.
@jsjoeio Great! Thank you for your feedback. We’ll keep addressing it, and I will comment here with an update.