From fedab192c42f554ec652a6a9fd86166a6fd82807 Mon Sep 17 00:00:00 2001 From: robonetphy <1998patelumang@gmail.com> Date: Sun, 26 Mar 2023 21:07:57 +0530 Subject: [PATCH] drag and drop test case initialized --- test/cypress/tests/dragnDrop.spec.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/cypress/tests/dragnDrop.spec.ts 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(); + } + }); +});