mirror of
https://github.com/codex-team/editor.js
synced 2026-03-17 08:05:47 +01:00
drag and drop test case initialized
This commit is contained in:
parent
37b9c481b8
commit
fedab192c4
1 changed files with 21 additions and 0 deletions
21
test/cypress/tests/dragnDrop.spec.ts
Normal file
21
test/cypress/tests/dragnDrop.spec.ts
Normal 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();
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue