dashboard-ui.spec.ts 479 B

12345678910111213
  1. describe('dashboard-ui', () => {
  2. beforeEach(() => {
  3. cy.visit('/dashboard-ui')
  4. cy.get('.uppy-Dashboard-input:first').as('file-input')
  5. })
  6. it('should render thumbnails', () => {
  7. cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force:true })
  8. cy.get('.uppy-Dashboard-Item-previewImg')
  9. .should('have.length', 2)
  10. .each((element) => expect(element).attr('src').to.include('blob:'))
  11. })
  12. })