feat: Replace Playwright anti-patterns with web-first assertions in dag-list#63559
feat: Replace Playwright anti-patterns with web-first assertions in dag-list#63559choo121600 merged 20 commits into
Conversation
|
@choo121600 Please review this PR. Welcome to any feedback! |
choo121600
left a comment
There was a problem hiding this comment.
It looks like the static check is failing.
You might find the following guide helpful in resolving it :)
https://github.com/apache/airflow/blob/main/contributing-docs/08_static_code_checks.rst
|
@choo121600 Please re-run test again. |
|
@choo121600 could you review and test again? |
…2e-improve-playwright-patterns-dags-list
choo121600
left a comment
There was a problem hiding this comment.
Overall looks good 👍
just one
…2e-improve-playwright-patterns-dags-list
|
Thanks @choo121600 I updated! Please review again |
|
@choo121600 These testings don't seem to relate to my code changes. I'd appreciate you review that log and give me feedbacks. |
|
You can reproduce and debug this locally using the following command: |
…2e-improve-playwright-patterns-dags-list
…2e-improve-playwright-patterns-dags-list
…2e-improve-playwright-patterns-dags-list
|
@choo121600 I updated. Please review the testing failure log. I think it doesn't seem to relate to my changes. |
choo121600
left a comment
There was a problem hiding this comment.
It looks like the static check is failing.
…2e-improve-playwright-patterns-dags-list
|
@choo121600 please review again. Testing passed. thanks |
|
Cool, Thanks 🎉 |
…ag-list (apache#63559) * E2E: Replace Playwright anti-patterns with web-first assertions in dags-list * fix: solve PROD Image test error * fix: Fix remaining Playwright anti-patterns in DagsPage * fix: fix lint error * fix: Update stale breeze command output hash * fix: Use getByRole for card/table view toggle buttons * fix: Replace fragile state locator with data-testid and remove redundant .catch() wrappers * fix: update * fix: use data-testid and data-state assertions * fix: solve testing error * update * update * fix hook format
…ag-list (apache#63559) * E2E: Replace Playwright anti-patterns with web-first assertions in dags-list * fix: solve PROD Image test error * fix: Fix remaining Playwright anti-patterns in DagsPage * fix: fix lint error * fix: Update stale breeze command output hash * fix: Use getByRole for card/table view toggle buttons * fix: Replace fragile state locator with data-testid and remove redundant .catch() wrappers * fix: update * fix: use data-testid and data-state assertions * fix: solve testing error * update * update * fix hook format
…ag-list (apache#63559) * E2E: Replace Playwright anti-patterns with web-first assertions in dags-list * fix: solve PROD Image test error * fix: Fix remaining Playwright anti-patterns in DagsPage * fix: fix lint error * fix: Update stale breeze command output hash * fix: Use getByRole for card/table view toggle buttons * fix: Replace fragile state locator with data-testid and remove redundant .catch() wrappers * fix: update * fix: use data-testid and data-state assertions * fix: solve testing error * update * update * fix hook format
Replace Playwright anti-patterns with web-first assertions in
dags-list.spec.tsandDagsPage.tsto align with Playwright best practices. No test coverage or behavior changes.waitForTimeout()calls - replaced with state-based waiting (expect().toBeVisible/Hidden/toHaveCount,waitForResponse):has-text()andlocator("text=")withgetByRole(),getByTestId(), and.filter({ hasText: })verifyDagExists,verifyCardViewVisible,verifyTableViewVisible) toPromise<void>with web-firstexpect()assertionswhileloop +waitForTimeoutpolling inverifyDagRunStatuswithexpect.poll()needsReviewFilterselector (button:has-text("Needs Review")→getByTestId("dags-needs-review-filter"))closes: #63426
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (claude-sonnet-4-6) following the guidelines