Skip to content

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

Open
bittoby wants to merge 2 commits intoapache:mainfrom
bittoby:feat/e2e-improve-playwright-patterns-plugins
Open

feat: Improve Playwright test patterns in plugins.spec.ts and PluginsPage.ts#63562
bittoby wants to merge 2 commits intoapache:mainfrom
bittoby:feat/e2e-improve-playwright-patterns-plugins

Conversation

@bittoby
Copy link

@bittoby bittoby commented Mar 13, 2026

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
@bittoby
Copy link
Author

bittoby commented Mar 13, 2026

@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
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.

2 participants