drag and drop test case initialized

This commit is contained in:
robonetphy 2023-03-26 21:07:57 +05:30
commit fedab192c4

View file

@ -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();
}
});
});