Skip to content

Removed legacy settings acceptance test plumbing - #29403

Merged
9larsons merged 1 commit into
mainfrom
codex/settings-test-teardown
Jul 16, 2026
Merged

Removed legacy settings acceptance test plumbing#29403
9larsons merged 1 commit into
mainfrom
codex/settings-test-teardown

Conversation

@9larsons

Copy link
Copy Markdown
Contributor

What changed

  • removed the @tryghost/admin-x-settings Playwright target, scripts, tag, config, and final skipped placeholder
  • removed the obsolete standalone Vite shell and StandaloneApp wrapper
  • pruned settings-only shared acceptance fixtures while retaining ActivityPub's mockApi and Admin analytics fixtures
  • removed dead legacy upload assets and moved the still-used theme archive into Admin
  • updated package dependencies, lockfile entries, and stale documentation

Why

All Settings acceptance coverage now runs in Admin's browser-mode suite. Keeping an empty standalone target required a fake test and continued scheduling a legacy CI lane. This teardown is the hard gate before moving Settings source into Admin under PLA-243.

Validation

  • pnpm nx run @tryghost/admin-x-settings:test:unit — 205 passed
  • pnpm nx run @tryghost/admin-x-settings:lint
  • pnpm --filter @tryghost/admin-x-framework build
  • pnpm --filter @tryghost/admin-x-framework lint
  • pnpm --filter @tryghost/activitypub test:acceptance — 31 passed
  • pnpm nx run admin:build
  • pnpm --filter admin test:acceptance — 325 passed
  • focused theme acceptance test — 23 passed
  • independent review completed with no remaining findings

ref https://linear.app/ghost/issue/PLA-243

ref https://linear.app/ghost/issue/PLA-243

- all settings acceptance coverage now runs in Admin
- removing the standalone target prevents CI from carrying an empty legacy lane
- shared Playwright helpers remain for ActivityPub
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1f68d6f0-4266-4c31-921c-b98648828fef

📥 Commits

Reviewing files that changed from the base of the PR and between facc2e6 and 04a01b1.

⛔ Files ignored due to path filters (5)
  • apps/admin-x-settings/test/utils/files/upload.zip is excluded by !**/*.zip
  • apps/admin-x-settings/test/utils/images/image.png is excluded by !**/*.png
  • apps/admin-x-settings/test/utils/responses/source.zip is excluded by !**/*.zip
  • apps/admin/test-utils/acceptance/fixtures/theme.zip is excluded by !**/*.zip
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (32)
  • apps/admin-x-design-system/postcss.config.cjs
  • apps/admin-x-framework/package.json
  • apps/admin-x-framework/src/test/acceptance.ts
  • apps/admin-x-framework/src/test/render.tsx
  • apps/admin-x-framework/src/test/responses/actions.json
  • apps/admin-x-framework/src/test/responses/custom_theme_settings.json
  • apps/admin-x-framework/src/test/responses/incoming_recommendations.json
  • apps/admin-x-framework/src/test/responses/invites.json
  • apps/admin-x-framework/src/test/responses/labels.json
  • apps/admin-x-framework/src/test/responses/newsletters.json
  • apps/admin-x-framework/src/test/responses/offers.json
  • apps/admin-x-framework/src/test/responses/recommendations.json
  • apps/admin-x-framework/src/test/responses/roles.json
  • apps/admin-x-framework/src/test/responses/tiers.json
  • apps/admin-x-framework/src/test/responses/users.json
  • apps/admin-x-settings/README.md
  • apps/admin-x-settings/index.html
  • apps/admin-x-settings/node-shim.cjs
  • apps/admin-x-settings/package.json
  • apps/admin-x-settings/playwright.config.mjs
  • apps/admin-x-settings/postcss.config.cjs
  • apps/admin-x-settings/src/app.tsx
  • apps/admin-x-settings/src/index.tsx
  • apps/admin-x-settings/src/main.tsx
  • apps/admin-x-settings/src/styles/standalone.css
  • apps/admin-x-settings/test/acceptance/membership/signup-embed.test.ts
  • apps/admin-x-settings/test/utils/files/pintura-umd.js
  • apps/admin-x-settings/test/utils/files/pintura.css
  • apps/admin-x-settings/test/utils/files/redirects.yml
  • apps/admin-x-settings/test/utils/files/routes.yml
  • apps/admin-x-settings/vite.config.mjs
  • apps/admin/src/settings/site/theme.acceptance.test.tsx
💤 Files with no reviewable changes (27)
  • apps/admin-x-framework/src/test/responses/newsletters.json
  • apps/admin-x-framework/src/test/responses/recommendations.json
  • apps/admin-x-framework/src/test/responses/roles.json
  • apps/admin-x-settings/node-shim.cjs
  • apps/admin-x-framework/src/test/responses/offers.json
  • apps/admin-x-framework/src/test/responses/labels.json
  • apps/admin-x-framework/src/test/responses/users.json
  • apps/admin-x-settings/test/utils/files/pintura-umd.js
  • apps/admin-x-framework/src/test/responses/actions.json
  • apps/admin-x-framework/src/test/responses/invites.json
  • apps/admin-x-settings/src/styles/standalone.css
  • apps/admin-x-settings/vite.config.mjs
  • apps/admin-x-settings/test/utils/files/routes.yml
  • apps/admin-x-settings/test/acceptance/membership/signup-embed.test.ts
  • apps/admin-x-framework/src/test/responses/incoming_recommendations.json
  • apps/admin-x-framework/src/test/responses/tiers.json
  • apps/admin-x-framework/src/test/responses/custom_theme_settings.json
  • apps/admin-x-settings/postcss.config.cjs
  • apps/admin-x-settings/index.html
  • apps/admin-x-settings/test/utils/files/redirects.yml
  • apps/admin-x-settings/test/utils/files/pintura.css
  • apps/admin-x-settings/playwright.config.mjs
  • apps/admin-x-framework/package.json
  • apps/admin-x-settings/src/main.tsx
  • apps/admin-x-settings/src/index.tsx
  • apps/admin-x-settings/README.md
  • apps/admin-x-settings/src/app.tsx

Walkthrough

The change removes the standalone settings-app bootstrap, public wrapper export, Playwright scripts and configuration, related fixtures, and test assets. Shared framework acceptance support is reduced to core API mocking and two statistics fixtures, and its test-data dependency is removed. The theme acceptance test uses a new archive fixture path. PostCSS configuration wiring and explanatory comments are updated.

Possibly related PRs

Suggested labels: migration

Suggested reviewers: kevinansfield, evanhahn, acburdine

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: removing legacy Settings acceptance test plumbing.
Description check ✅ Passed The description is directly related and accurately summarizes the teardown, validation, and migration goals of the change.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/settings-test-teardown

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Jul 16, 2026

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 04a01b1

Command Status Duration Result
nx run ghost:test:ci:integration ✅ Succeeded 2m 49s View ↗
nx run-many -t test:unit -p @tryghost/admin-x-d... ✅ Succeeded 7m 26s View ↗
nx run ghost:test:integration ✅ Succeeded 2m 54s View ↗
nx run @tryghost/admin:test:acceptance ✅ Succeeded 4m 55s View ↗
nx run ghost:test:legacy ✅ Succeeded 3m 21s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 20s View ↗
nx run-many -t lint -p @tryghost/admin-x-design... ✅ Succeeded 3m 10s View ↗
nx run @tryghost/koenig-lexical:test:acceptance ✅ Succeeded 2m 33s View ↗
Additional runs (8) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-16 17:52:52 UTC

@9larsons
9larsons marked this pull request as ready for review July 16, 2026 17:52
@9larsons
9larsons enabled auto-merge (squash) July 16, 2026 17:53
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.17%. Comparing base (facc2e6) to head (04a01b1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #29403      +/-   ##
==========================================
- Coverage   74.17%   74.17%   -0.01%     
==========================================
  Files        1592     1592              
  Lines      139000   139000              
  Branches    16866    16861       -5     
==========================================
- Hits       103109   103106       -3     
- Misses      34872    34876       +4     
+ Partials     1019     1018       -1     
Flag Coverage Δ
admin-tests 55.45% <ø> (+0.02%) ⬆️
e2e-tests 76.24% <ø> (-0.01%) ⬇️

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.

@9larsons
9larsons merged commit 17397db into main Jul 16, 2026
50 of 51 checks passed
@9larsons
9larsons deleted the codex/settings-test-teardown branch July 16, 2026 17:56
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