Skip to content

Commit

Permalink
Remove unnecessary window promise (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranemihir authored Feb 18, 2021
1 parent 156a687 commit 50cbc4d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/cypress/tests/initialization.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
});

0 comments on commit 50cbc4d

Please sign in to comment.