Skip to content

Fix flaky backfill E2E test by targeting clickable label element#63837

Open
choo121600 wants to merge 1 commit intoapache:mainfrom
choo121600:fix/flaky-backfill-test
Open

Fix flaky backfill E2E test by targeting clickable label element#63837
choo121600 wants to merge 1 commit intoapache:mainfrom
choo121600:fix/flaky-backfill-test

Conversation

@choo121600
Copy link
Member

Summary

selectReprocessBehavior used locator("label").getByText(...), which resolved to a <span> inside Chakra UI's RadioCard <label>.
Clicking this <span> was flaky because it is not the actual interactive element and never reached a stable state within
the timeout.

Fix

Target the actual clickable <label> instead by:

  • Scoping via getByRole("radiogroup")
  • Filtering options using hasText
  • Clicking the <label> element that receives pointer events

related: #63036


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant