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