Skip to content

refactor: Update Settings E2E tests to use user-facing locators - #1445

Open
Infinite-Null wants to merge 6 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-settings-user-facing-locators
Open

Infinite-Null wants to merge 6 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-settings-user-facing-locators

Conversation

@Infinite-Null

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

Copy link
Copy Markdown
Contributor

What?

Follow-up to #778.

Update settings.spec.js to use user-facing locators where appropriate.

How?

  • Find the connector warning within the named AI region.
  • Find OpenAI connector controls and experiment section buttons by role and name.
  • Find snackbars through their accessible dismiss control and expected message.

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 Settings tests:

npm run test:e2e -- \
  tests/e2e/specs/admin/settings.spec.js \
  --project chromium

Changelog Entry

Developer - Updated Settings E2E tests to use user-facing locators where appropriate.

Open WordPress Playground Preview

@Infinite-Null
Infinite-Null requested a review from a team November 28, 2026 16:47
@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 28, 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 (e1c4aaf).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #1445   +/-   ##
==========================================
  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.

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.

1 participant