Skip to content

refactor: Update shared E2E helpers to use user-facing locators - #1438

Merged
dkotter merged 6 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-shared-helpers-user-facing-locators
Nov 30, 2026
Merged

dkotter merged 6 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-shared-helpers-user-facing-locators

Conversation

@Infinite-Null

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

Copy link
Copy Markdown
Contributor

What?

Follow-up to #778.

Update tests/e2e/utils/helpers.ts to use user-facing locators where appropriate.

How?

  • Find connector list items by role and provider heading.
  • Find save notices through their accessible dismiss control and displayed message.
  • Share the experiment group lookup and identify each group by its named section button.
  • Find experiment checkboxes and paragraph blocks by role.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 4.6
Used for: Suggesting a fix.

Testing Instructions

Run the specs covering the affected helpers:

npm run test:e2e -- \
  tests/e2e/specs/admin/settings.spec.js \
  tests/e2e/specs/admin/dashboard.spec.js \
  tests/e2e/specs/experiments/block-container-label-generation.spec.js \
  tests/e2e/specs/experiments/content-resizing.spec.js \
  --project chromium

Changelog Entry

Developer - Updated shared E2E helpers to use user-facing locators where appropriate.

Open WordPress Playground Preview

@Infinite-Null
Infinite-Null requested a review from a team November 26, 2026 14:37
@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 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.59%. Comparing base (c4666bb) to head (39cbf3e).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #1438   +/-   ##
==========================================
  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 30, 2026
@dkotter
dkotter merged commit ea8bc8a into WordPress:develop Nov 30, 2026
36 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