Desel72 opened a new pull request, #63448:
URL: https://github.com/apache/airflow/pull/63448
Replace Playwright anti-patterns with best practices in home-dashboard spec
and HomePage page object.
**Changes in HomePage.ts:**
- Replace `button:has-text("DAG Import Errors")` with `getByRole("button", {
name: "DAG Import Errors" })`
- Replace `waitFor({ state: "visible" })` with web-first
`expect().toBeVisible()` (2 occurrences)
**Changes in home-dashboard.spec.ts:**
- Replace `page.waitForURL()` with web-first `expect(page).toHaveURL()` (2
occurrences)
- Remove redundant manual `expect(url).toContain()` assertions after URL
checks
closes: #63428
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]