Skip to content

Refactor/e2e content gap suggestions settings import export locators - #1437

Merged
dkotter merged 7 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-content-gap-suggestions-settings-import-export-locators
Nov 30, 2026
Merged

dkotter merged 7 commits into
WordPress:developfrom
Infinite-Null:refactor/e2e-content-gap-suggestions-settings-import-export-locators

Conversation

@Infinite-Null

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

Copy link
Copy Markdown
Contributor

What?

Follow-up to #778.

Update the Content Gap Suggestions and Settings Import/Export E2E tests to use user-facing locators.

How?

  • Find the suggestion outline within the list item identified by its title.
  • Find generation errors and empty-state explanations by displayed text.
  • Locate the Settings menu group by its accessible role and name.

Use of AI Tools

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

Testing Instructions

Run the affected tests:

npm run test:e2e -- \
  tests/e2e/specs/experiments/content-gap-suggestions.spec.js \
  tests/e2e/specs/admin/import-export.spec.js \
  --project chromium

Changelog Entry

Developer - Updated Content Gap Suggestions and Settings Import/Export E2E tests to use user-facing locators.

Open WordPress Playground Preview

@Infinite-Null
Infinite-Null requested a review from a team November 26, 2026 14:01
@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 (463f445).

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