我正在尝试用赛普拉斯测试React Dropzone Uploader。我收到以下错误:
InvalidCharacterError
Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
我的赛普拉斯代码:
const fileName = 'logo.png'
cy.fixture(fileName).then(fileContent => {
cy.get('.dzu-inputLabel')
.click()
.upload({ fileContent, fileName, mimeType: '*/*' })
})
我如何使其工作?