Skip to content

refactor: Update Abilities Explorer E2E tests to use user-facing locators - #1436

Merged
dkotter merged 5 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-abilities-explorer-user-facing-locators
Nov 25, 2026
Merged

dkotter merged 5 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-abilities-explorer-user-facing-locators

Conversation

@Infinite-Null

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

Copy link
Copy Markdown
Contributor

What?

Follow-up to #778.

Update the Abilities Explorer E2E tests to use user-facing locators.

How?

  • Find the Abilities Explorer menu link within the named Main menu navigation.
  • Locate the error output by its displayed error code instead of the pre tag.
  • Find the ability link by its accessible name when checking the first sorted row.

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 test:

npm run test:e2e -- \
  tests/e2e/specs/experiments/abilities-explorer.spec.js \
  --project chromium

Changelog Entry

Developer - Updated Abilities Explorer E2E tests to use user-facing locators.

Open WordPress Playground Preview

@Infinite-Null
Infinite-Null marked this pull request as ready for review November 25, 2026 13:11
@Infinite-Null
Infinite-Null requested a review from a team November 25, 2026 13:11
@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.

@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.59%. Comparing base (71b65a8) to head (bafe12d).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #1436   +/-   ##
==========================================
  Coverage      85.59%   85.59%           
  Complexity      5091     5091           
==========================================
  Files            193      193           
  Lines          18425    18425           
==========================================
  Hits           15770    15770           
  Misses          2655     2655           
Flag Coverage Δ
unit 85.59% <ø> (ø)

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.

@dkotter dkotter added this to the 1.6.0 milestone Nov 25, 2026
@dkotter
dkotter merged commit 8539495 into WordPress:develop Nov 25, 2026
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