chore: fix system test with trash assets before run which waits for download to complete (#27170)

This commit is contained in:
Bill Glesias
2023-06-30 12:57:28 -04:00
committed by GitHub
parent 51fa53ca56
commit b0c63ff863
2 changed files with 2 additions and 6 deletions
@@ -6,6 +6,7 @@ describe('downloads', () => {
})
it('downloads cvs file', () => {
cy.get('[data-cy=download-csv]').click()
// wait 600ms after the click to wait/finish the download of the file
cy.get('[data-cy=download-csv]').click().wait(600)
})
})
-5
View File
@@ -57,10 +57,6 @@ describe('e2e downloads', () => {
await systemTests.exec(this, {
project: 'downloads',
spec: 'download_csv.cy.ts',
// FIXME: currently there is a bug in trashAssetsBeforeRuns=false when video=false. @see https://github.com/cypress-io/cypress/issues/27007
config: {
video: true,
},
})
// this run should _not_ trash the downloads from the above run
@@ -68,7 +64,6 @@ describe('e2e downloads', () => {
project: 'downloads',
spec: 'simple_passing.cy.ts',
config: {
video: true,
trashAssetsBeforeRuns: false,
},
})