Open GrayedFox opened 1 year ago
I have a feeling it's due to the injected product cards on the test page -- there is something about either PlayWright or Cypress not liking this.
It's a strange one, since we do pass ignoreHTTPSErrors
to PW: https://github.com/cypress-io/cypress/blob/ed0668e24c2ee6753bbd25ae467ce94ae5857741/packages/server/lib/browsers/webkit-automation.ts#L99
Furthermore, I am able to launch your site just fine in regular pw-webkit:
pw.webkit.launch({ ignoreHTTPSErrors: true, headless: false }).then(b => b.newPage()).then(p => p.goto('https://artifacts.carted.dev/elements/exported/1559/dist/index.html'))
So it seems to be an issue specific to Cypress and Playwright working together. I'm not sure what it could be. I'll get this prioritized for further investigation and a fix.
I am seeing similar issue in my project.
Have same issue in my project. Cypress v 12.10.0, playwright-webkit: "1.34". page.goto: An SSL error has occurred and a secure connection to the server cannot be made. =========================== logs =========================== navigating to url/__/#/specs/runner?file=cypress/e2e/attendance/test.cy.js", waiting until "load"
We just came across the same issue. The test app also has the ".dev" domain
We were developing on OSX Sonoma which still reroutes .dev domains to localhost or whatever. We just executed the same test repository on Windows and it did not fire this error.
p.s. On Sonoma with Cypress and WebKit try to do a cy.visit("https://playwright.dev/") or flutter.dev
Current behavior
All of my tests run fine locally using Chrome, Electron, Chromium, and Edge. They mostly work with Firefox (I skip a bunch that rely on iFrames) -- but I cannot get any of them to run on Safari.
The error is this:
It's unclear why this happens as the actual URL in question is exposed -- and has a valid SSL cert. Is it possible that Cypress isn't passing the URL correctly to the underlying Playwright instance?
https://artifacts.carted.dev/__/#/specs
seems incorrect (expecting to see entire URL plus path).Desired behavior
Run tests in Safari as expected.
Test code to reproduce
The easiest way to reproduce this is with the following tests. Make sure to pass the correct baseUrl when running the tests.
That exposed build URL has a valid SSL certificate and I can access it using Safari on my MacBook just fine.
Cypress Version
11.2.0
Node version
18.9.1
Operating System
Mac Os Ventura 13.2 (x86)
Debug Logs
Other
Above is the output using DEBUG=cypress:server*