OperationCode / front-end

Operation Code's website
https://operationcode.org
MIT License
371 stars 267 forks source link

Integrate Playwright #1722

Open kylemh opened 1 year ago

kylemh commented 1 year ago

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

michaelDragomir commented 5 months ago

@kylemh still want to do this?

michaelDragomir commented 5 months ago

@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..

kylemh commented 5 months ago

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.

michaelDragomir commented 5 months ago

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

kylemh commented 5 months ago

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

michaelDragomir commented 5 months ago

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