cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.8k stars 3.17k forks source link

top-level domain .dev in baseURL makes webkit to open blankPage instead of tests #27394

Open Bohdan-Hevlich opened 1 year ago

Bohdan-Hevlich commented 1 year ago

Current behavior

Right now if baseUrl in config file has .dev domain - it makes webkit to open blankPage instead of tests.

Screenshot 2023-07-26 at 16 55 38

Desired behavior

Cypress webkit should open tests with all available top-level domains.

Test code to reproduce

cypress.config.js
module.exports = {
  e2e: {
    setupNodeEvents(on, config) {},
    experimentalWebKitSupport: true,
    baseUrl: "https://get.dev/",
  },
};

Cypress Version

12.10.0

Node version

v18.16.1

Operating System

macOS Ventura 13.1

Debug Logs

No response

Other

"playwright-webkit": "1.34"
Bohdan-Hevlich commented 1 year ago

If trying to run headless with the same settings you get this error: page.goto: An SSL error has occurred and a secure connection to the server cannot be made. =========================== logs =========================== navigating to "https://get.dev/__/#/specs/runner?file=cypress/e2e/spec.cy.js", waiting until "load"

nagash77 commented 1 year ago

Hi @Bohdan-Hevlich I just want to clarify that this test works when run in chrome and electron? It is only failing in webkit?

Bohdan-Hevlich commented 1 year ago

Hi @nagash77 yes, it is working in chrome, electron, mozila but not working in webkit

Bohdan-Hevlich commented 1 year ago

@nagash77 Hi, is there any update about this issue? It totally blocks testing safari browser for my project. And this browser is critical part for us...

MarkoKolasinac commented 4 months ago

We had the same issue. This only applies to OSX. On win the same project works fine. On windows, all is good. So I guess some internal dependency DNS resolution of the .dev domain.