fixtures file:
copy an image file under fixture folder
eg. 'test.jpg'
spec file:
const img = 'test.jpg'
cy.contains('Upload').should('be.visible').should('be.enabled')
Above step is working as expetced.
cy.contains('Upload').attachFile(img);
Above step is not return any error but it is not uploading image.