remove window promise

This commit is contained in:
ranemihir 2020-12-22 20:48:45 +05:30
parent 36d5a6751f
commit 4fafd1e357

View file

@ -17,14 +17,12 @@ describe('Editor basic initialization', () => {
});
it('should create a visible UI', () => {
cy.window().then((window) => {
/**
* Assert if created instance is visible or not.
*/
cy.get('[data-cy=editorjs]')
.get('div.codex-editor')
.should('be.visible');
});
/**
* Assert if created instance is visible or not.
*/
cy.get('[data-cy=editorjs]')
.get('div.codex-editor')
.should('be.visible');
});
});
});