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

236 - Cypress timing error #255

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

ekraffmiller
Copy link
Contributor

What this PR does / why we need it:

In the e2e test, the Dataset tests are sometimes failing because the page is asynchronously updated during the Cypress call to click the AccessFileMenu. To avoid this, the Cypress command for finding the button and the call to click the button are separated into two statements.
here is Cypress documentation on the issue: https://docs.cypress.io/guides/references/error-messages#cy-failed-because-the-page-updated

Which issue(s) this PR closes:

Special notes for your reviewer:

Due to the timing nature of the error, it's hard to reproduce consistently. I was able to get my local dev environment in a state where it was happening by adding some console.log statements, and when I applied the fix, the error no longer happened.

Suggestions on how to test this:

Run the e2e test locally and check the e2e test on Github Actions.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

no

Is there a release notes update needed for this change?:

no

Additional documentation:

@ekraffmiller ekraffmiller marked this pull request as ready for review December 11, 2023 23:53
@MellyGray MellyGray self-assigned this Dec 12, 2023
Copy link
Contributor

@MellyGray MellyGray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I re-run the e2e tests several times both on my machine and on the Github actions and they seem to be passing every time so I'm going to approve

@MellyGray MellyGray removed their assignment Dec 12, 2023
@GPortas GPortas self-assigned this Dec 12, 2023
@GPortas GPortas merged commit 14a74ae into develop Dec 12, 2023
9 of 11 checks passed
@GPortas GPortas deleted the 236-cypress-timing-error-fix-tests branch December 12, 2023 16:50
jayanthkomarraju pushed a commit to jayanthkomarraju/dataverse-frontend that referenced this pull request May 31, 2024
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.

Cypress timing error in Dataset e2e test
3 participants