dashboard-aws.spec.ts 486 B

12345678910111213
  1. describe('Dashboard with @uppy/aws-s3', () => {
  2. beforeEach(() => {
  3. cy.visit('/dashboard-aws')
  4. cy.get('.uppy-Dashboard-input:first').as('file-input')
  5. })
  6. it('should upload cat image successfully', () => {
  7. cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force:true })
  8. cy.get('.uppy-StatusBar-actionBtn--upload').click()
  9. cy.get('.uppy-StatusBar-statusPrimary').should('contain', 'Complete')
  10. })
  11. })