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

Cypress 13.5.1 - Header not transmited to new tabs open in chromium navigator #28350

Closed
FabienBounoir opened this issue Nov 16, 2023 · 2 comments · Fixed by #28387
Closed

Cypress 13.5.1 - Header not transmited to new tabs open in chromium navigator #28350

FabienBounoir opened this issue Nov 16, 2023 · 2 comments · Fixed by #28387
Assignees

Comments

@FabienBounoir
Copy link

Current behavior

When I need to download a file, it opens another tab in the chromium browser, the credentials are not passed to the new tab, so I have my api asking me to authenticate again,

on the other hand, it works fine using the firefox browser.

image

Desired behavior

What I'd like to see again is the header in the new tab, as it was in version 13.4.0.

currently this prevents me from downloading the file and validating my functional test.

Test code to reproduce

    cy.visit('/file?filename=test.txt')
    cy.contains('download').click()
    const downloadsFolder = Cypress.config('downloadsFolder')
    cy.readFile(path.join(downloadsFolder, 'test.txt')).should('exist')

Cypress Version

13.5.1

Node version

v18.17.1

Operating System

Ubuntu 22.04 LTS

Debug Logs

AssertionError
Timed out retrying after 4000ms: cy.readFile("/home/fabien/Git/project/cypress/downloads/test.txt") failed because the file does not exist at the following path:



/home/fabien/Git/project/cypress/downloads/test.txtLearn more
cypress/e2e/project/file-download/file-download.cy.ts:25:1
  23 |         cy.contains('download').click();
  24 |         var downloadsFolder = Cypress.config('downloadsFolder');
> 25 |         cy.readFile(path.join(downloadsFolder, 'test.txt')).should('exist');
     | ^
  26 |     });
  27 |     afterEach(function () {
  28 |         cy.visit('/file?filename=test.txt');

Other

No response

@Nayboko
Copy link

Nayboko commented Nov 21, 2023

Hi, I got the same issue since 13.5.0 on Chromium 119.0.6045.159 when I try to upload then download for finally read a simple txt file. It works fine on Firefox 119.0.1.

The 13.5.1 update did not change anything.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 5, 2023

Released in 13.6.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants