Code it('Questionnaires ', function() { const yourFiturePath = 'cypress\fixtures\pic\hd4.jpg cy.get('.upload-button').attachFile(yourFiturePath) cy.get('.save').click() } hd4.jpg file is present in the given path but It's giving me the error 