abramenal / cypress-file-upload

File upload testing made easy
https://npm.im/cypress-file-upload
MIT License
496 stars 89 forks source link

cannot upload PDF file from fixture [Bug] #350

Closed aktibaba closed 2 years ago

aktibaba commented 2 years ago

Current behavior:

it seems like uploading but

uploadpdf-1 uploadpdf-2

cy.get("div.button").attachFile({ filePath:'form.pdf', mimeType:'application/pdf', encoding:"base64"

    },
    {force:true,
    uploadType:"input"}

    )

Desired behavior:

but the file is not uploaded at the end

I waited enough for uploading to get done

Steps to reproduce: (app code and test code)

Versions

aktibaba commented 2 years ago

file upload is only working with input