Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Last active January 9, 2022 09:28
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/e5e41e675197366924dd014ddf0a7e63 to your computer and use it in GitHub Desktop.
Save hypeJunction/e5e41e675197366924dd014ddf0a7e63 to your computer and use it in GitHub Desktop.
cy.getInput('Add File').attach('elephant.pdf');
cy.getInput('Add File')
.alerts()
.should('include', 'PDF files are not supported');
cy.getList('File List')
.getListItem('elephant.pdf')
.alerts()
.should('include', 'PDF files are not supported');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment