Skip to content
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

E2E tests with Playwright #666

Merged
merged 5 commits into from
Feb 18, 2022
Merged

E2E tests with Playwright #666

merged 5 commits into from
Feb 18, 2022

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Feb 17, 2022

After running into very annoying performance issues trying to do what with Testing Lib and JSDOM what would really be better done in Cypress and Playwright, I decided to try the latter. The results are quite good.

Two features that I want very much have been given the 1.20 (next version) label by the maintainers:

Now, 59 issues have that label, so they might not all make it into the next version, but hopefully it'll be soon.

I experimented with playwright-testing-library to get *ByRole queries, but I couldn't get it to work without some really ugly syntax.

This doesn't really need to be its own job, but this allows it to run in parallel with the other tests. The yarn install, the Playwright install, and the tests take a minute each. It would be nice to cache both yarn install and the Playwright browser install, but it's perfectly fine without that.

image

@github-actions
Copy link
Contributor

Preview will be deployed at https://console-git-playwright.internal.oxide.computer

@vercel
Copy link

vercel bot commented Feb 17, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/oxidecomputer/console-ui-storybook/7dfdCd6iicfafXz85PVWr1FRvPHu
✅ Preview: https://console-ui-storybook-git-playwright-oxidecomputer.vercel.app

@david-crespo david-crespo marked this pull request as ready for review February 18, 2022 02:20
@david-crespo david-crespo merged commit d20b226 into main Feb 18, 2022
@david-crespo david-crespo deleted the playwright branch February 18, 2022 02:29
@david-crespo david-crespo mentioned this pull request Mar 27, 2022
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.

1 participant