Skip to content

Opening baseUrl in Webkit results in blank page #24175

Open
@michallbanas

Description

@michallbanas

Current behavior

When baseUrl is not localhost, but regular website eg. https://www.michalbanas.dev, I get only blank page when using webkit (open mode), and this error An SSL error has occurred and a secure connection to the server cannot be made in headless mode. I've been facing this issue since experiment support for Webkit was released. It works good for other browsers.

CleanShot 2022-10-07 at 11 37 51

Desired behavior

Possibility to use webkit in cypress with any url.

Test code to reproduce

Example project:

https://github.com/michallbanas/cypress-webkit-blankPage

Cypress Version

10.9.0

Node version

18.7.0

Operating System

macOS 12.6

Debug Logs

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.9.0                                                                         │
  │ Browser:        WebKit 16 (headless)                                                           │
  │ Node Version:   v18.7.0 (/Users/michalbanas/.nvm/versions/node/v18.7.0/bin/node)               │
  │ Specs:          1 found (test.cy.js)                                                           │
  │ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            │
  │ Experiments:    experimentalWebKitSupport=true                                                 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  test.cy.js                                                                      (1 of 1)
page.goto: An SSL error has occurred and a secure connection to the server cannot be made.
=========================== logs ===========================
navigating to "https://michalbanas.dev/__/#/specs/runner?file=cypress/e2e/test.cy.js", waiting until "load"
============================================================
page.goto: An SSL error has occurred and a secure connection to the server cannot be made.
=========================== logs ===========================
navigating to "https://michalbanas.dev/__/#/specs/runner?file=cypress/e2e/test.cy.js", waiting until "load"
============================================================
    at WebKitAutomation.reset (/Users/michalbanas/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/webkit-automation.js:134:37)
    at Function.create (/Users/michalbanas/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/webkit-automation.js:108:9)
    at Object.open (/Users/michalbanas/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/webkit.js:84:20)
    at Object.open (/Users/michalbanas/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/index.js:109:27)
    at OpenProject.relaunchBrowser (/Users/michalbanas/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/open_project.js:152:20)

Other

Hope I provided everything needed, it's my first issue here 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingReproducibleCan be reproducedTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.browser: webkitIssue related to Webkit (Safari) browserexperiment: webkitIssues when using experimentalWebkitSupporttype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions