When I use the cypress-file-upload plugin without the cy.origin() function, it works perfectly. However, when I introduce cy.origin() in my test, I get the error cy.get(...).attachFile is not a function, even though I've properly installed and imported the cypress-file-upload plugin in the commands.js file.
What I've tried: Installed cypress-file-upload via npm. Imported it in my cypress/support/commands.js file with import 'cypress-file-upload';. Used the .attachFile() method without cy.origin() and it works perfectly.