Skip to content

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

Merged
potiuk merged 1 commit intoapache:mainfrom
choo121600:fix/flaky-backfill-test
Mar 18, 2026
Merged

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

Conversation

@choo121600
Copy link
Copy Markdown
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
@potiuk potiuk merged commit 9a0fb15 into apache:main Mar 18, 2026
81 checks passed
@vatsrahul1001
Copy link
Copy Markdown
Contributor

Nice!

imrichardwu pushed a commit to imrichardwu/airflow that referenced this pull request Mar 18, 2026
imrichardwu pushed a commit to imrichardwu/airflow that referenced this pull request Mar 18, 2026
fat-catTW pushed a commit to fat-catTW/airflow that referenced this pull request Mar 22, 2026
techcodie pushed a commit to techcodie/airflow that referenced this pull request Mar 23, 2026
abhijeets25012-tech pushed a commit to abhijeets25012-tech/airflow that referenced this pull request Apr 9, 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.

3 participants