Skip to content

test(plugins): theme, syntax and file-type suggestion smoke journeys - #30761

Closed
nwparker wants to merge 2 commits into
nwparker/plugins-v2-8-file-type-suggestionsfrom
nwparker/plugins-v2-9-smoke-e2e
Closed

nwparker wants to merge 2 commits into
nwparker/plugins-v2-8-file-type-suggestionsfrom
nwparker/plugins-v2-9-smoke-e2e

Conversation

@nwparker

@nwparker nwparker commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​493 $\color{#cf222e}{\Huge{\mathbf{−}}}$​83 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​410
Prod 0 0 0 0

ELI5

Adds end-to-end smoke tests for the plugin features in this stack, so a regression in themes, syntax highlighting or file-type suggestions fails CI instead of reaching users.

What Changed

Before: the plugin end-to-end specs covered the demo plugin, marketplace install with consent, the language pack switch, panel containment and the startup budget.

After: three more specs.

  • plugin-theme-smoke.spec.ts:
    • An app theme and an icon theme are chosen through the Settings menus. The page background and the explorer's plugin icons appear live.
    • Disabling the plugin restores Orca's colors, the earlier Theme choice and the built-in icons.
  • plugin-syntax-smoke.spec.ts:
    • A .gleam file that's already open gets highlighted when the Gleam example pack is enabled.
    • It re-highlights after the grammar changes on disk.
    • It goes back to plain text when the plugin system is turned off.
  • plugin-file-type-suggestion.spec.ts:
    • Against a real local Git v2 catalog, served over the same SSH test shim as the marketplace spec, with a release that pins commit, content hash and fileTypes, a .gleam file suggests the Gleam example pack, and the preview lists "1 syntax".
    • View plugin opens the preview, and nothing is installed.
    • Don't suggest is remembered.

How:

  • tests/e2e/helpers/plugin-git-fixture.ts holds the marketplace spec's Git fixture helpers, now shared.
  • tests/e2e/helpers/plugin-smoke.ts handles dev-plugin approval, opening files, and reading Monaco token classes.
  • The marketplace spec's fixture env type is fixed, so the e2e typecheck baseline shrinks by one.

Why

The plan for this work asks for one live enable → update → disable proof per contribution family. These specs run the real surfaces (Settings menus, editor, marketplace preview) instead of store calls wherever the UI exists.

Linked Issue

None. This is part of the plugin platform rework (maintainer change).

Visual Proof

N/A: test-only change.

Testing

All seven plugin specs pass locally in the background (ORCA_BACKGROUND_LAUNCH=1): demo, marketplace content, panel containment ×2, startup budget, theme, syntax and file-type suggestion. The startup budget missed once by 25 ms under parallel load and passed 3 of 3 alone. The e2e typecheck ratchet is OK.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Depends on: the file-type suggestions PR.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred). Plugin e2e and the e2e typecheck ratchet pass locally.

@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from b77bd91 to a654606 Compare October 19, 2026 21:42
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 59e3ce5 to 9c29b12 Compare October 19, 2026 21:42
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from a654606 to ee52e94 Compare October 21, 2026 06:35
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 9c29b12 to 0b28f7e Compare October 21, 2026 06:35
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from ee52e94 to b383d4e Compare October 21, 2026 12:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 0b28f7e to 7b2ac31 Compare October 21, 2026 12:23
@nwparker
nwparker marked this pull request as ready for review October 21, 2026 12:24
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from b383d4e to 8cb344c Compare October 21, 2026 20:11
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 7b2ac31 to 6c68a5a Compare October 21, 2026 20:11
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from 8cb344c to 5a045cc Compare October 24, 2026 11:44
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 6c68a5a to 07ffe85 Compare October 24, 2026 11:44
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from 5a045cc to 936b3f9 Compare October 24, 2026 12:55
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 07ffe85 to 4a252ab Compare October 24, 2026 12:55
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from 936b3f9 to 8b91c90 Compare October 24, 2026 13:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 4a252ab to 0953547 Compare October 24, 2026 13:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from 8b91c90 to ab92ebe Compare October 25, 2026 05:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 0953547 to 996ae48 Compare October 25, 2026 05:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from ab92ebe to 6a6f51a Compare October 26, 2026 12:04
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch 2 times, most recently from 43d9011 to fa09dd7 Compare October 26, 2026 12:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch 2 times, most recently from d740d07 to 3691df7 Compare October 28, 2026 04:58
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from fa09dd7 to 2f4dd7e Compare October 28, 2026 04:58
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from 3691df7 to 7193340 Compare October 28, 2026 05:30
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from 2f4dd7e to a1cd6a0 Compare October 28, 2026 05:30
…ions

Three end-to-end specs join the demo and marketplace journeys:
- an app theme and icon theme apply from Settings and fall back when the
  plugin is disabled;
- a plugin syntax highlights an already-open file, re-highlights it after a
  grammar update, and lets go when disabled;
- a v2 catalog release with fileTypes is suggested for an unknown file,
  View plugin opens its preview without installing, and Don't suggest is
  remembered.
The marketplace spec's Git fixture helpers move to a shared helper.
@nwparker
nwparker force-pushed the nwparker/plugins-v2-9-smoke-e2e branch from a1cd6a0 to c7885b8 Compare October 28, 2026 10:53
@nwparker
nwparker force-pushed the nwparker/plugins-v2-8-file-type-suggestions branch from 7193340 to bf3494d Compare October 28, 2026 10:53
@nwparker nwparker mentioned this pull request Oct 28, 2026
7 of 9 tasks
@nwparker

Copy link
Copy Markdown
Contributor Author

Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR.

@nwparker nwparker closed this Oct 28, 2026
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