You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
557 B
19 lines
557 B
/// <reference types="Cypress" />
|
|
|
|
describe("upload route should", () => {
|
|
it.only("handle one file upload", () => {
|
|
cy.visit("/")
|
|
cy.contains("Drop files")
|
|
|
|
cy.fixture("logos/mcdonald.png", "base64").then(fileContent => {
|
|
cy.get('[cy="dropzone"]').upload(
|
|
{
|
|
fileContent,
|
|
fileName: "mcdonald.png",
|
|
mimeType: "image/png",
|
|
},
|
|
{ subjectType: "drag-n-drop" }
|
|
)
|
|
})
|
|
})
|
|
})
|
|
|