Skip to content

Commit c27f8a9

Browse files
committed
debug: file upload
1 parent 94a50fa commit c27f8a9

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

cypress/e2e/spec-scratch.cy.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,21 @@ describe("Scratch", () => {
4949
.should("not.exist");
5050

5151
const saveAndDownloadPanel = openSaveAndDownloadPanel();
52+
53+
// cy.readFile("cypress/fixtures/upload-test-project.sb3", {
54+
// encoding: null,
55+
// }).then((contents) => {
56+
// expect(contents).to.be.instanceOf(ArrayBuffer);
57+
// });
58+
59+
// upload project
5260
saveAndDownloadPanel.uploadProject(
53-
"cypress/fixtures/upload-test-project.sb3",
61+
"cypress/fixtures/upload-test-project.sb3"
5462
);
5563

5664
// confirm project has been uploaded
5765
getScratchIframeBody()
58-
.findByRole("button", { name: "test sprite" })
66+
.findByRole("button", { name: "test sprite" }, { timeout: 50000 })
5967
.should("be.visible");
6068

6169
cy.task("resetDownloads");

0 commit comments

Comments
 (0)