Skip to content

Commit

Permalink
fix: revert wait on image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeStarks committed Jun 22, 2024
1 parent b3b2633 commit bdb0499
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/imsharer/02_upload_image.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,27 @@ describe('upload and display images', () => {

// upload images
cy.get('input[name="upload"]').selectFile('cypress/fixtures/image1.jpg', { force: true })
cy.wait(500)
cy.get('img[alt="image1.jpg"]').should('exist')

cy.get('input[name="upload"]').selectFile('cypress/fixtures/image2.jpg', { force: true })
cy.wait(500)
cy.get('img[alt="image2.jpg"]').should('exist')

cy.get('input[name="upload"]').selectFile('cypress/fixtures/image3.jpg', { force: true })
cy.wait(500)
cy.get('img[alt="image3.jpg"]').should('exist')

cy.get('input[name="upload"]').selectFile('cypress/fixtures/image4.jpg', { force: true })
cy.wait(500)
cy.get('img[alt="image4.jpg"]').should('exist')

cy.get('input[name="upload"]').selectFile('cypress/fixtures/image5.jpg', { force: true })
cy.wait(500)
cy.get('img[alt="image5.jpg"]').should('exist')

cy.get('input[name="upload"]').selectFile('cypress/fixtures/image6.jpg', { force: true })
cy.wait(500)
cy.get('img[alt="image6.jpg"]').should('exist')

// the number of images in the gallery should be at least the number of images uploaded
Expand Down

0 comments on commit bdb0499

Please sign in to comment.