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

bypass race condition to avoid flakiness in click behaviour test #47917

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

uladzimirdev
Copy link
Contributor

@uladzimirdev uladzimirdev commented Sep 13, 2024

add a workaround to bypass race condition that appears on slow networks during saving the dashboard

✅ stress 30/30


// this is done to bypass race condition problem, the root cause for it is
// described in `updateDashboardAndCards` from frontend/src/metabase/dashboard/actions/save.js
visitDashboard("@dashboardId");
Copy link
Contributor Author

@uladzimirdev uladzimirdev Sep 16, 2024

Choose a reason for hiding this comment

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

this is the main change, old code didn't contain that visitDashboard

regular cy.wait(5000) worked too in my tests, but this wait I like more

@uladzimirdev uladzimirdev requested review from nemanjaglumac and a team September 16, 2024 11:50
@uladzimirdev uladzimirdev added the backport Automatically create PR on current release branch on merge label Sep 16, 2024
@uladzimirdev uladzimirdev changed the title increase timeout to fix flakiness bypass race condition to avoid flakiness in click behaviour test Sep 16, 2024
@uladzimirdev uladzimirdev merged commit a5c0f91 into master Sep 17, 2024
150 of 151 checks passed
@uladzimirdev uladzimirdev deleted the click-behaviour-flaky branch September 17, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Automatically create PR on current release branch on merge .Team/Querying
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants