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

Chore: e2e tests on graphic component (Issue/95) #97

Merged
merged 6 commits into from
Mar 11, 2024
Merged

Conversation

lemmyadams
Copy link
Contributor

Addresses #95

@lemmyadams lemmyadams self-assigned this Feb 2, 2024
@cahirodoherty-learningpool

Hi guys, just to clear up a little confusion on this - I think our option here may end up being cy.wait(X) as you suggest, but I am hesitant to get into the pattern of throwing waits in too often as it can bloat the running time of the Cypress tests as a whole.
My nudge towards exploring promises/some sort of async manipulation was to avoid that in the cases where possible.

For example, here our wait is needed because we are waiting on page load. But it is preferable to react to a known outcome of page load (some event trigger for example) rather than an arbitrary amount of time.

Now I'm not sure of exactly the correct thing to listen out for, but thought it was worth exploring

@oliverfoster
Copy link
Member

Hi guys, just to clear up a little confusion on this - I think our option here may end up being cy.wait(X) as you suggest, but I am hesitant to get into the pattern of throwing waits in too often as it can bloat the running time of the Cypress tests as a whole. My nudge towards exploring promises/some sort of async manipulation was to avoid that in the cases where possible.

For example, here our wait is needed because we are waiting on page load. But it is preferable to react to a known outcome of page load (some event trigger for example) rather than an arbitrary amount of time.

Now I'm not sure of exactly the correct thing to listen out for, but thought it was worth exploring

Some interesting strategies here https://stackoverflow.com/questions/64421563/cypress-wait-for-unpredictable-component-to-render-from-an-exclusive-set

@lemmyadams lemmyadams marked this pull request as ready for review February 19, 2024 14:54
Copy link

Choose a reason for hiding this comment

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

👀

Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

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

👍

@joe-allen-89 joe-allen-89 merged commit 7f3f900 into master Mar 11, 2024
@joe-allen-89 joe-allen-89 deleted the issue/95 branch March 11, 2024 11:33
github-actions bot pushed a commit that referenced this pull request Mar 11, 2024
## [6.2.4](v6.2.3...v6.2.4) (2024-03-11)

### Fix

* e2e tests on graphic component (fixes #95) (#97) ([7f3f900](7f3f900)), closes [#95](#95) [#97](#97)
Copy link

🎉 This PR is included in version 6.2.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants