-
Notifications
You must be signed in to change notification settings - Fork 140
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
test(core): fix playwright tests #1622
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
08d8c32
to
f1ba0a1
Compare
|
f1ba0a1
to
928d390
Compare
928d390
to
4691ad9
Compare
⚡️🏠 Lighthouse reportLighthouse ran against https://catalyst-latest-als9lgx9u-bigcommerce-platform.vercel.app 🖥️ DesktopWe ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:
📱 MobileWe ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:
|
What/Why?
Fixes a few issues with the playwright test suite:
--disable-web-security
We were running into a CORS issue when redirecting to checkout from a
HeadlessChrome
sec-ch-ua
user agent. When the browser sent preflight requests to BigCommerce assets, we were denied access to theloader.js
asset which cause checkout to not load.I attempted to set a new User Agent for playwright requests, but the
sec-ch-ua
header disallows tampering to it, thus rejecting the request. I tried something like this but failed: microsoft/playwright#27903 (comment)Other fixes
Cleaned up some unused exports and tweaked the session syncing test to actually work and updated a snapshot with new functionality.
Testing
See CI.