Skip to content

refactor: Update Admin Navigation, Connectors, and Dashboard E2E tests to use user-facing locators - #1435

Merged
dkotter merged 5 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-admin-navigation-connectors-dashboard-locators
Nov 25, 2026
Merged

dkotter merged 5 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-admin-navigation-connectors-dashboard-locators

Conversation

@Infinite-Null

@Infinite-Null Infinite-Null commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What?

Follow-up to #778.

Update the Admin Navigation, Connectors, and Dashboard E2E tests to use user-facing locators.

How?

  • activate.spec.js finds activation links by accessible name and scopes plugin action links to the AI plugin row.
  • tools.spec.js finds AI tools through headings, lists, named links, and the Main menu navigation.
  • featured-connectors.spec.js finds connector list items by role and heading.
  • dashboard.spec.js verifies summary metrics by their displayed labels instead of counting styled cards.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Sonnet 4.6
Used for: Validating bug, suggesting a fix.

Testing Instructions

Run the affected tests:

npm run test:e2e -- \
  tests/e2e/specs/admin/activate.spec.js \
  tests/e2e/specs/admin/tools.spec.js \
  tests/e2e/specs/admin/featured-connectors.spec.js \
  tests/e2e/specs/admin/dashboard.spec.js \
  --project chromium

Changelog Entry

Developer - Updated Admin Navigation, Connectors, and Dashboard E2E tests to use user-facing locators.

Open WordPress Playground Preview

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.39%. Comparing base (71b65a8) to head (c196b78).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #1435      +/-   ##
=============================================
- Coverage      85.59%   85.39%   -0.20%     
  Complexity      5091     5091              
=============================================
  Files            193      193              
  Lines          18425    19477    +1052     
=============================================
+ Hits           15770    16632     +862     
- Misses          2655     2845     +190     
Flag Coverage Δ
unit 85.39% <ø> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Infinite-Null
Infinite-Null marked this pull request as ready for review November 25, 2026 13:03
@Infinite-Null
Infinite-Null requested a review from a team November 25, 2026 13:03
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Infinite-Null <ankitkumarshah@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@dkotter dkotter added this to the 1.6.0 milestone Nov 25, 2026
@dkotter
dkotter merged commit c4666bb into WordPress:develop Nov 25, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants