Add E2E coverage for dashboard widgets#498
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #498 +/- ##
=============================================
+ Coverage 69.15% 69.16% +0.01%
Complexity 981 981
=============================================
Files 63 63
Lines 4649 4648 -1
=============================================
Hits 3215 3215
+ Misses 1434 1433 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What?
Adds end-to-end test coverage for the AI dashboard widgets in wp-admin.
Why?
The dashboard widgets are a user-facing feature, but there was no browser-level test coverage for them. Adding E2E coverage helps catch regressions in widget visibility, onboarding state, and permissions.
How?
AI StatusandAI Capabilitieswidgets.AI Capabilitieswidget shows the expected summary metrics and the provider capabilities section.AI Statuswidget shows the getting started checklist when setup is incomplete.Use of AI Tools
I used AI assistance to help review the repository, draft the E2E test file, and iterate on the test assertions. I manually reviewed the implementation, validated the behavior locally, and verified the final test runs before submitting.
Testing Instructions
npm run test:e2e -- tests/e2e/specs/admin/dashboard.spec.jsAI StatusandAI CapabilitieswidgetsAI Statuswidget shows the onboarding checklist when setup is incompleteTesting Instructions for Keyboard
AI StatusandAI Capabilitieswidgets are reachable and visible for admin users.Screenshots or screencast
Not applicable.