Skip to content

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

Description

@FabienBounoir

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions