Remove unnecessary window promise (#1488)

This commit is contained in:
Mihir Rane 2021-02-18 20:52:55 +05:30 committed by GitHub
parent 156a687f40
commit 50cbc4d63e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');
});
});
});