mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 10:50:23 +02:00
Add e2e test
This commit is contained in:
parent
24ce5e8ae9
commit
b1b4564931
|
@ -47,4 +47,18 @@ describe('ReadOnly API spec', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('should add default block when block list is empty', () => {
|
||||
createEditor({ readOnly: true });
|
||||
|
||||
cy
|
||||
.get<EditorJS>('@editorInstance')
|
||||
.then(async editor => {
|
||||
editor.readOnly.toggle(false).then(() => {
|
||||
cy.get('[data-cy=editorjs').click();
|
||||
|
||||
expect(editor.readOnly.isEnabled).to.be.false;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue