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

Expand Arrow test on Cypress #130

Closed
AndersonCeci opened this issue Jan 14, 2023 · 1 comment
Closed

Expand Arrow test on Cypress #130

AndersonCeci opened this issue Jan 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@AndersonCeci
Copy link
Collaborator

AndersonCeci commented Jan 14, 2023

One of the cypress tests were one that clicks on expand arrow but when you run it on npx cypress open everything was alright and it passed the test.
When run on npx cypress run it failed all the time on electron
But when you add npx cypress run --browser chrome 1/10 test cases it failed In chrome
Below I'm showing the test code :

    it('will click on the expand arrow and click on all suggestions and close it again', () => {

        cy.get("#editor > p > .typo").should("not.exist");
        cy.get("#editor").type("fshji ");
        cy.get('h3.bi-arrow-right-square').click();
        cy.get('button.suggestion').contains("afshi").click();
        cy.get("#editor").contains("afshi").should("exist");
        cy.get("#editor").clear();

        cy.get("#editor > p > .typo").should("not.exist");
        cy.get("#editor").type("fshji ");
        cy.get('h3.bi-arrow-right-square').click();
        cy.get('button.suggestion').contains("shaji").click();
        cy.get("#editor").contains("shaji").should("exist");
        cy.get('h3.bi-arrow-left-square').click();
        cy.get("#editor").clear();
    }); 

The error that cypress throws for running this is :
AssertionError: Timed out retrying after 4000ms: Expected to find element: 'h3.bi-arrow-left-square', but never found it."

@AndersonCeci AndersonCeci added the bug Something isn't working label Jan 14, 2023
@AndiBraimllari
Copy link
Collaborator

If consider this issue to be solved feel free to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants