Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Last active January 9, 2022 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hypeJunction/c1633c12e25a97910f11d3fe7ac9d88e to your computer and use it in GitHub Desktop.
Save hypeJunction/c1633c12e25a97910f11d3fe7ac9d88e to your computer and use it in GitHub Desktop.
cy.getInput('Add File').attach('bear.jpg');
// Wait for file to finish uploading
cy.getList('File List')
.getListItem('bear.jpg')
.progress()
.its('value')
.should('eq', '100');
// Remove uploaded file
cy.getControlsFor('bear.jpg')
.getButton('Remove')
.press();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment