Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary window promise from Initialisation test. #1488

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Remove unnecessary window promise from Initialisation test. #1488

merged 1 commit into from
Feb 18, 2021

Conversation

ranemihir
Copy link
Contributor

@ranemihir ranemihir commented Dec 24, 2020

Removes the unnecessary promise to access the browser window object which is not used.

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

In this test the cy.window().then() promise is unnecessary as window object is not actually being used.

@neSpecc neSpecc merged commit 50cbc4d into codex-team:next Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants