Fix official plugin install e2e regressions in workspace #357
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#357
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Recent workspace end-to-end coverage regressed in the official plugin install
path. The daily-use journey now fails while installing the notebook plugin from
the official registry with a browser
fetch()failure, and the local officialplugin verification suite can reach the app before
pluginDistributionisavailable.
Problem
packages/workspace/e2e/daily-use-journey.spec.tsfails wheninstallOfficialPlugin()refreshes the catalog and installs an officialplugin from the routed registry fixture.
packages/workspace/e2e/local-official-plugin-install.spec.tsfails becausethe helper evaluates the page before
app.pluginDistributionhas beenconstructed, so the suite cannot verify any local official plugin installs.
registry install verification added in #353.
Goal
Restore stable official plugin install coverage in workspace E2E so both the
daily-use journey and the local official plugin matrix pass against the current
registry/bundle contract.
Scope
Playwright official-plugin helpers.
official installs work again in daily-use and local official-plugin E2E.
runtime contract.
Non-goals
unless directly required to restore these failing tests.
Acceptance Criteria
pnpm --filter @lapis-notes/workspace test:e2e:daily-usepasses again.pnpm --filter @lapis-notes/workspace test:e2e:official-pluginspassesagain.
pluginDistributionexists.browser-hosted workspace test runtime.
Implementation Notes
mountWorkspaceApp()injectspluginDistributionOptionsintoAppand when the E2E helpers attach initscripts and route handlers.
fixture flow used by
prepareLocalOfficialPluginPage().and existing E2E coverage.
Suggested Files or Specs To Inspect
packages/workspace/e2e/official-plugin-install.helpers.tspackages/workspace/e2e/local-official-plugin.helpers.tspackages/workspace/src/main.tspackages/workspace/src/lib/components/app/bootstrap.tspackages/api/src/lib/context.svelte.tspackages/api/src/lib/plugin-distribution/installer.tspackages/api/src/lib/plugin-distribution/manager.tsspec/src/30-cross-package-contracts/plugin-registry.mdspec/src/20-packages/workspace/index.mdValidation Commands
pnpm --filter @lapis-notes/api check:allpnpm --filter @lapis-notes/api testpnpm --filter @lapis-notes/workspace check:allpnpm --filter @lapis-notes/workspace testpnpm --filter @lapis-notes/workspace test:e2e:daily-usepnpm --filter @lapis-notes/workspace test:e2e:official-pluginsRelated Issues
Follow-up Tasks
Implementation Summary
Hardened workspace official-plugin E2E helpers by waiting for pluginDistribution before local installs, retrying transient page-context failures, and requiring the daily-use journey to fail fast when its local official registry fixture is missing. Validated with workspace check:all, workspace test, workspace daily-use E2E, and the full official-plugin E2E wrapper.