diff --git a/test/cypress/tests/dragnDrop.spec.ts b/test/cypress/tests/dragnDrop.spec.ts new file mode 100644 index 00000000..08dde389 --- /dev/null +++ b/test/cypress/tests/dragnDrop.spec.ts @@ -0,0 +1,21 @@ +import Header from "@editorjs/header"; +import Image from "@editorjs/simple-image"; +import * as _ from "../../../src/components/utils"; +import 'cypress-file-upload'; + +describe("Drag and drop the block of Editor", function () { + beforeEach(function () { + cy.createEditor({ + tools: { + header: Header, + image: Image, + }, + }).as("editorInstance"); + }); + + afterEach(function () { + if (this.editorInstance) { + this.editorInstance.destroy(); + } + }); +});