Skip to content

ci: Increase flag-tests wait time#6827

Merged
matthewelwell merged 1 commit intomainfrom
ci/increase-flag-tests-wait-time
Mar 3, 2026
Merged

ci: Increase flag-tests wait time#6827
matthewelwell merged 1 commit intomainfrom
ci/increase-flag-tests-wait-time

Conversation

@matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Mar 2, 2026

Changes

Increases wait times in flag-tests after it was decreased in this PR.

Context in Slack here.

How did you test this code?

TODO

@matthewelwell matthewelwell requested a review from a team as a code owner March 2, 2026 20:05
@matthewelwell matthewelwell requested review from talissoncosta and removed request for a team March 2, 2026 20:05
@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Building Building Preview, Comment Mar 2, 2026 8:05pm
flagsmith-frontend-staging Building Building Preview, Comment Mar 2, 2026 8:05pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Mar 2, 2026 8:05pm

Request Review

@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard ci-cd Build, test and deployment related labels Mar 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-6827 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-6827 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-6827 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-6827 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-6827 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-6827 Finished ✅ Results

talissoncosta added a commit that referenced this pull request Mar 2, 2026
…ag tests

Replace fixed 500ms timeouts with `waitForElementVisible('#try-it-results')`
to wait for the actual loading state to complete. This approach:

- Eliminates race conditions on slow CI runners
- Runs faster when API responds quickly (no artificial 500ms delays)
- More semantically correct (waits for the element we actually need)
- Consistent with E2E best practices already used elsewhere

The #try-it-results element only receives its ID when the TryIt component
finishes loading (isLoading: false), making it the perfect indicator to
wait for rather than guessing arbitrary timeout values.

Related: #6827 (increased timeouts from 500ms to 2000ms/1500ms)
This PR provides a better alternative to arbitrary timeout increases.
talissoncosta added a commit that referenced this pull request Mar 2, 2026
…ag tests

Replace fixed 500ms timeouts with `waitForElementVisible('#try-it-results')`
to wait for the actual loading state to complete. This approach:

- Eliminates race conditions on slow CI runners
- Runs faster when API responds quickly (no artificial 500ms delays)
- More semantically correct (waits for the element we actually need)
- Consistent with E2E best practices already used elsewhere

The #try-it-results element only receives its ID when the TryIt component
finishes loading (isLoading: false), making it the perfect indicator to
wait for rather than guessing arbitrary timeout values.

Related: #6827 (increased timeouts from 500ms to 2000ms/1500ms)
This PR provides a better alternative to arbitrary timeout increases.
Copy link
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

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

It can't hurt given the propagation time

@matthewelwell matthewelwell merged commit b8e3f68 into main Mar 3, 2026
27 checks passed
@matthewelwell matthewelwell deleted the ci/increase-flag-tests-wait-time branch March 3, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd Build, test and deployment related front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants