OperationCode/front-end

Integrate Playwright

Opened this issue ยท 6 comments

kylemh commented

I want to use Playwright for Automated Visual Testing with Chromatic and eventually ditch snapshot tests + ditch Cypress.

Helpful: https://dev.to/szmydlo/comprehensive-coverage-jestplaywright-in-nextjs-ts-1df2

@kylemh still want to do this?

@kylemh I made a PR for this integration. Should be done with it soon..currently testing it out...hopefully I didn't miss anything. but so far working smoothly..

Yes, I want to do this. I also want to try and use https://github.com/kwonoj/swc-plugin-coverage-instrument so that we can finally use SWC (and ditch Istanbul + Babel). This would allow our builds to be nearly twice as fast and our dev server would be MUCH faster.

@kylemh i'll spend some time on this...and review that repo.

Im willing to ditch coverage too. So focus on Playwright replacing Cypress first. Coverage can come in a later PR. I'm updating some code in the other open PR too. Trying to get us to Next 14 asap

alrighty...i'll open up a new PR and work on replacing Cypress with Playwright.