From 50cbc4d63e688f3376448ddd997999cd04dadb95 Mon Sep 17 00:00:00 2001 From: Mihir Rane <66768874+ranemihir@users.noreply.github.com> Date: Thu, 18 Feb 2021 20:52:55 +0530 Subject: [PATCH] Remove unnecessary window promise (#1488) --- test/cypress/tests/initialization.spec.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/cypress/tests/initialization.spec.ts b/test/cypress/tests/initialization.spec.ts index 39b1570f..67750c5f 100644 --- a/test/cypress/tests/initialization.spec.ts +++ b/test/cypress/tests/initialization.spec.ts @@ -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'); }); }); });