Skip to content

feat: Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts#63562

Merged
choo121600 merged 5 commits into
apache:mainfrom
Crystora:feat/e2e-improve-playwright-patterns-plugins
Mar 17, 2026
Merged

feat: Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts#63562
choo121600 merged 5 commits into
apache:mainfrom
Crystora:feat/e2e-improve-playwright-patterns-plugins

Conversation

@Crystora

@Crystora Crystora commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts to align with Playwright Best Practices.

This PR improves test patterns only. It does not change test coverage or behavior.

Changes in PluginsPage.ts:

  • Replace page.waitForFunction() with DOM queries with locator-based waitFor()
  • Expose nameColumn and sourceColumn as typed Locator properties instead of methods returning string[]

Changes in plugins.spec.ts:

  • Replace manual assertions on extracted values with web-first assertions (not.toHaveCount(), not.toBeEmpty(), toHaveCount())

related: #63429


Was generative AI tooling used to co-author this PR?
  • Yes (Claude Code, claude-sonnet-4-6)

Generated-by: Claude Code (claude-sonnet-4-6) following the guidelines

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Mar 13, 2026
@Crystora

Copy link
Copy Markdown
Contributor Author

@choo121600 Could you please review this PR?
thank you

@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Mar 14, 2026
Comment thread airflow-core/src/airflow/ui/tests/e2e/pages/PluginsPage.ts Outdated
Comment thread airflow-core/src/airflow/ui/tests/e2e/pages/PluginsPage.ts Outdated
Comment thread airflow-core/src/airflow/ui/tests/e2e/pages/PluginsPage.ts Outdated
@Crystora

Crystora commented Mar 15, 2026

Copy link
Copy Markdown
Contributor Author

@haseebmalik18 Thanks for your feedback!

@Crystora

Copy link
Copy Markdown
Contributor Author

@choo121600 @haseebmalik18 Please review again
thank you

@Crystora

Copy link
Copy Markdown
Contributor Author

@choo121600 Review again. I updated

@choo121600 choo121600 linked an issue Mar 16, 2026 that may be closed by this pull request
8 tasks

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall looks good to me :)
Let's wait for CI to pass.

Comment thread airflow-core/src/airflow/ui/tests/e2e/specs/plugins.spec.ts Outdated
@Crystora Crystora requested a review from choo121600 March 16, 2026 11:47
@Crystora

Copy link
Copy Markdown
Contributor Author

@choo121600 All tests passed!

@Crystora

Copy link
Copy Markdown
Contributor Author

@choo121600 could you also review this PR, too?

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM :)
Thanks 😉

@Crystora

Copy link
Copy Markdown
Contributor Author

Thanks. would you merge this PR? 🙏

@choo121600 choo121600 merged commit eb6a4d8 into apache:main Mar 17, 2026
81 checks passed
@boring-cyborg

boring-cyborg Bot commented Mar 17, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

@Crystora Crystora deleted the feat/e2e-improve-playwright-patterns-plugins branch March 17, 2026 12:37
@choo121600

Copy link
Copy Markdown
Member

@bittoby. Merged :)
Congratulations on your first contribution! 🎉
Thanks for your work, and welcome 🙌

fat-catTW pushed a commit to fat-catTW/airflow that referenced this pull request Mar 22, 2026
…Page.ts (apache#63562)

* feat: Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts

* refactor: Refactor waitForLoad to use web-first assertions

* fix: add data-testid

* fix: update web-first assertion
techcodie pushed a commit to techcodie/airflow that referenced this pull request Mar 23, 2026
…Page.ts (apache#63562)

* feat: Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts

* refactor: Refactor waitForLoad to use web-first assertions

* fix: add data-testid

* fix: update web-first assertion
abhijeets25012-tech pushed a commit to abhijeets25012-tech/airflow that referenced this pull request Apr 9, 2026
…Page.ts (apache#63562)

* feat: Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts

* refactor: Refactor waitForLoad to use web-first assertions

* fix: add data-testid

* fix: update web-first assertion
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. ready for maintainer review Set after triaging when all criteria pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E2E: Improve Playwright test patterns in plugins.spec.ts

4 participants