Fix flaky e2e test

This commit is contained in:
Murderlon 2024-02-27 12:19:52 +01:00
parent d5e89fd918
commit b95f8fa47d
No known key found for this signature in database
GPG key ID: 1FF861FF1DDBB953

View file

@ -176,15 +176,14 @@ describe('Dashboard with Transloadit', () => {
})
it('should not create assembly when all individual files have been cancelled', () => {
cy.get('@file-input').selectFile(
[
'cypress/fixtures/images/cat.jpg',
'cypress/fixtures/images/traffic.jpg',
],
{ force: true },
)
cy.window().then(({ uppy }) => {
cy.get('@file-input').selectFile(
[
'cypress/fixtures/images/cat.jpg',
'cypress/fixtures/images/traffic.jpg',
],
{ force: true },
)
// eslint-disable-next-line
// @ts-ignore fix me
expect(