b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
23 lines
750 B
TypeScript
23 lines
750 B
TypeScript
describe('Upload multiple files', () => {
|
|
it('should be able to receive two files', () => {
|
|
cy.get('#ask-upload-button').should('exist');
|
|
|
|
cy.fixture('state_of_the_union.txt', 'utf-8').as('txtFile');
|
|
cy.fixture('hello.py', 'utf-8').as('pyFile');
|
|
|
|
cy.get('#ask-button-input').selectFile(['@txtFile', '@pyFile'], {
|
|
force: true
|
|
});
|
|
|
|
// Sometimes the loading indicator is not shown because the file upload is too fast
|
|
// cy.get("#ask-upload-button-loading").should("exist");
|
|
// cy.get("#ask-upload-button-loading").should("not.exist");
|
|
|
|
cy.get('.step')
|
|
.eq(1)
|
|
.should('contain', '2 files uploaded: state_of_the_union.txt,hello.py');
|
|
|
|
cy.get('#ask-upload-button').should('not.exist');
|
|
});
|
|
});
|