I discovered today that Playwright might give devs...
# contributing
i
I discovered today that Playwright might give devs access to the browser's cookies. (Would have to confirm on my own.) If they do, it could be a great tool for testing example repositories since it also enables devs to disable JavaScript in the browser during end to end testing. If a set of standard test cases could be created, they could be run against any example repo to make sure everything still works as expected during repo NPM package upgrades, etc. Hoping to look into this sometime within the next 4 months. But sounds pretty exciting (since it would take away a lot of manual work).
Can confirm that Playwright is able to inspect browser cookies with JS disabled, even when the cookies are
httpOnly
. I'm about to reduce my manual testing time on Remix/SvelteKit by 1,000,000%. This will make spinning up example repos for Solid/Next.js so much easier.
About 1/3 of the way through this, I think. (Can be tracked on
remix-supertokens
repo.) Hardest part is probably going to be testing auth session refreshing.
17 Views