我想上传的一个。csv.巴布亚新几内亚.word文件类型以一个网件使用柏树。 我已经试过以下方式,但什么也没发生在网上应用程序。 不会有人知道可能是什么问题??
const fileName = 'csvfile.csv';
cy.fixture('myfiles/csvfile.csv').then(fileContent => {
cy.get(locator).attachFile({
fileContent,
fileName: 'csvfile.csv',
mimeType: 'application/csv'
})
})
我试着用mimeType为"image/png"png但它没有工作。 我已经使用进口发言柏上传中support/commands.js 但仍然没有工作。