Skip to content
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

Visiting a url with subdomains, supplying with basic auth crashes #3972

Closed
geekyme opened this issue Apr 16, 2019 · 1 comment
Closed

Visiting a url with subdomains, supplying with basic auth crashes #3972

geekyme opened this issue Apr 16, 2019 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@geekyme
Copy link

geekyme commented Apr 16, 2019

Current behavior:

Got a blank page with console errors below

Uncaught DOMException: Failed to set the 'domain' property on 'Document': 'com.sg' is a top-level domain.
    at $Cypress.setConfig

Uncaught TypeError: Cannot read property 'getSizeContainer' of undefined
    at App._handleScreenshots (cypress_runner.js:168193)
    at App.componentDidMount

The above error occurred in the <Iframes> component:
    in Iframes (created by App)
    in div (created by App)
    in div (created by App)
    in App (created 

Screen Shot 2019-04-16 at 3 06 19 PM

Desired behavior:

Cypress should correctly visit the page, enter the credentials and render the page. The last version that was working was 3.1.5

Steps to reproduce: (app code and test code)

describe("test", () => {
  it("works", () => {
    cy.visit("https://basic-auth-app.geekyme.now.sh", {
      auth: {
        username: "john",
        password: "secret"
      }
    });
  });
});

Versions

Cypress: 3.2.0

@flotwig
Copy link
Contributor

flotwig commented Apr 16, 2019

This is a known issue in 3.2.0 and will be fixed in the 3.3.0 release. Issue: #3717

For the time being, you can downgrade to 3.1.5 to avoid this bug.

Closing as duplicate of #3717.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants