mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 23:49:43 -05:00
chore: fix system test with trash assets before run which waits for download to complete (#27170)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user