Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions openspec/changes/e2e-coverage-programme/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,19 @@ Counts are scenarios, and scenarios cited by a Playwright test, measured on `dev
- Spec written: `tests/e2e/runtime-shell.spec.ts` (REQ-SHELL-001 block), 1 scenario now runs for the clause that had only a `test.fixme` behind it (mount-point-present: exactly one `<div id="launchpad-app">` as the child of `#app-workspace`), expected red until the spec or the template changes (templates/index.php and src/main.js use `workspace-vue`), runtime-shell 0 uncited, 0 `test.fixme` behind a scenario (the two empty-state fixmes in runtime-shell-canEdit.spec.ts cite none), not yet run (cloud, 2026-11-24)
- Spec written: `tests/e2e/no-navigation-panel.spec.ts`, `tests/e2e/page-ground.spec.ts`, `tests/e2e/runtime-shell-canEdit.spec.ts`, `tests/e2e/runtime-shell.spec.ts`, 5 scenarios strengthened (already counted). no-route-renders-the-panel: Reports, Flows and `/admin/templates` must also render the page More menu and no panel, and the content must take nearly the full viewport width, not only start at the left edge. no-destination-is-lost: an administrator test requires every destination plus `admin-settings-link` and no second `admin-settings` entry; the member must not see the admin link. the-grid-on-the-page-ground: a seeded dashboard puts a widget on the grid, so the widget-surface check no longer sits behind `if (widget !== null)`, and the ground must differ from `--color-main-background`. no-active-dashboard-select-control: a second dashboard is seeded and opened, and the one checked row must be its id. canedit-user-sees-full-edit-menu: More itself must offer Edit, Add widget and Documentation. 0 excluded added, not yet run (cloud, 2026-11-25)
- Spec written: `tests/e2e/more-menu.spec.ts`, 4 scenarios cited in the test bodies (the-header-carries-only-more, settings-unfolds-in-place, this-dashboard-ends-in-delete, escape-returns-focus-to-more: REQ-SHELL-013 was synced in by #1772 and cited only in the file header, with tests run as the suite's admin; the three "a member" scenarios now run as a throwaway member on their own dashboard, the header test also requires no Menu, Edit or Add widget button anywhere on the page, Settings must unfold below its toggle and indented with no Admin settings, Escape is pressed after focus has moved into the menu; This dashboard now requires the scenario's own list, Share and Set as default, and no Settings item), expected red on one label (moreMenuItems.js names the share item "Sharing"), runtime-shell 0 uncited, 0 excluded added, not yet run (cloud, 2026-11-25)
- [ ] 3.17 `dashboard-deeplinking`: 7 scenarios, 0 cited.
- [x] 3.17 `dashboard-deeplinking`: 7 scenarios, 0 cited.
- Written: `tests/e2e/dashboard-deeplinking.spec.ts` cites 6 scenarios (stale slug lands on a dashboard with 200, a slug address opens that dashboard, the path endpoint, one pushState per switch and none on mount, back returns to the previous dashboard, the health route); their exclusions are removed. The route-table order keeps a reasoned exclusion. The NULL-slug half of the path endpoint stays with DashboardApiControllerComputePathTest (a created dashboard always gets a derived slug). Open: the CI run that shows they ran, and the seen-to-fail mutation pass.
- Spec written: `tests/e2e/dashboard-deeplinking.spec.ts` (canonical-path-passed-through-initial-state, which only checked the address the frontend leaves: the test now reads the `deepLinkPath` initial state from the served page and requires `/<slug>`; stale-slug-falls-back-silently now also requires the handed path to be the fallback's, never the stale slug), 2 scenarios cited (already counted), 0 excluded, dashboard-deeplinking 0 uncited, not yet run (cloud, 2026-11-25)
- Spec written: `tests/e2e/dashboard-deeplinking.spec.ts` (stale-slug-falls-back-silently, which only required the handed path not to be the stale slug: the test now asks the seven-step resolver for the account's dashboard through `GET /api/dashboard` and its path endpoint, and requires the `deepLinkPath` handed for the stale slug to be exactly that path), 1 scenario cited (already counted), 0 excluded, not yet run (cloud, 2026-11-25)
- Run 25 Nov 2026 (sandbox Nextcloud 34.0.6 + MariaDB + Redis, OpenRegister main, launchpad development 75751290): `dashboard-deeplinking.spec.ts` 5/5 green (6 scenarios). Seen-to-fail pass: each test red under its own mutation (`PageController::computeDeepLinkPath()` answering '' for the stale-slug and slug-address tests, `DashboardTreeService::computePath()` without the leading slash for the path endpoint, `replaceState` for `pushState` for the history test, the health route renamed for the health test). The stale-slug test stayed green under the first mutation, because '' equals ''; it now also requires the resolver's path to be a real `/<slug>` path, and goes red.
- [x] 3.18 `default-widget-bundle`: 6 scenarios, 0 cited.
- Written: `tests/e2e/default-widget-bundle.spec.ts` cites 4 scenarios (the create response and the rendered grid, the preset tile columns, the envelope, the loading shim held on the active-dashboard read). The 2 left keep a reasoned exclusion naming their PHPUnit tests: the seedDefaults flag of the bootstrap (not visible in a browser) and the admin-template override (no e2e yet). Open: the CI run that shows they ran, and the seen-to-fail mutation pass.
- Run 21 Nov on development after #1476 (Nextcloud 34.0.6, OpenRegister 2.2.0-dev, live pass stack): 4 of 4 green.
- [ ] 3.19 `effective-default-marker`: 5 scenarios, 0 cited.
- [x] 3.19 `effective-default-marker`: 5 scenarios, 0 cited.
- Written: `tests/e2e/effective-default-marker.spec.ts` cites all 5 scenarios, and their exclusions are removed from the spec. Open: the CI run that shows they ran, and the seen-to-fail mutation pass.
- Spec written: `tests/e2e/effective-default-marker.spec.ts`, 5 scenarios cited, 0 excluded; "the pin wins over a group fallback" no longer skips when no group dashboard is on screen but asserts one is (SeedDefaultDashboard provisions it), so it can fail; not yet run (cloud, 2026-11-24)
- Spec written: `tests/e2e/effective-default-marker.spec.ts` (pin-wins-over-group-fallback, which could not tell "the pin wins" from "the fallback never fires": the test now clears the pin first and requires the group fallback row to carry the one marker, then pins A and requires the marker to leave the group row for A), 1 scenario cited (already counted), 0 excluded, not yet run (cloud, 2026-11-25)
- Run 25 Nov 2026 (same stack): `effective-default-marker.spec.ts` 5/5 green. Seen-to-fail pass: with `effectiveDefaultUuid()` answering '' every one of the five tests goes red.

## 4. Tier 3, widgets

Expand Down
4 changes: 4 additions & 0 deletions tests/e2e/dashboard-deeplinking.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ test.describe.serial('dashboard deep-linking (REQ-DDL-002..007)', () => {
try {
resolverPath = await deepLinkPathOnPage(plain.page)
expect(typeof resolverPath, JSON.stringify(resolverPath)).toBe('string')
// The account has dashboards (seeded above), so the resolver hands a
// real canonical path. An empty path on both sides would make the
// comparison below pass while no path is handed at all.
expect(resolverPath as string, 'the resolver hands a canonical path').toMatch(/^\/.+/)
} finally {
await plain.context.close()
}
Expand Down
Loading