https://cypress.io logo
`When('I choose 1 non image file', () => { cy....
# e2e-testing
a
Copy code
When('I choose 1 non image file', () => {
    cy.get("input[type=file").attachFile( {
        filePath: "example.json"
        mimeType: image/jpg || image/png
    })
})
here i want to write a test to check if a non image file is being uploaded, can i do this?