Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

test: Gate-19 e2e spec-coverage — 0 uncovered (32 tests pass)#112

Merged
rubenvdlinde merged 1 commit into
developmentfrom
test/e2e-coverage-gate19
May 27, 2026
Merged

test: Gate-19 e2e spec-coverage — 0 uncovered (32 tests pass)#112
rubenvdlinde merged 1 commit into
developmentfrom
test/e2e-coverage-gate19

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Playwright test suite at tests/e2e/spec-coverage/ covering all testable UI scenarios across 5 specs (admin-settings, token-editor-ui, token-import-export, theming-sync-dialog, token-set-apply-dialog) — 32 tests, all passing
  • Annotates 15 whole-spec @e2e exclude markers for pure backend/CSS/docs/API specs with no testable UI surface
  • Annotates per-scenario @e2e exclude markers for untestable scenarios in the 5 UI-surface specs (non-admin sessions, API internals, shared-env-mutating operations)
  • Gate-19 result: 0 uncovered, 31 covered, 408 excluded (439 total scenarios)

Bug fixes included

Two production bugs found and fixed while writing the tests:

  1. TokenSetPreviewService wrong CSS pathsgetResolvedColors() looked for css/defaults.css and css/overrides.css but those files live at css/systems/nldesign/defaults.css and css/systems/nldesign/overrides.css. This caused the /settings/tokenset-preview/{id} endpoint to always return resolved: [], which meant the apply dialog never appeared when changing token sets.

  2. Missing .nldesign-dialog-overlay CSS — Both the apply dialog and theming-sync dialog were inserted into document.body with no CSS for .nldesign-dialog-overlay, rendering them inline in the document flow below the viewport rather than as a fixed-position modal. Added position: fixed; inset: 0; z-index: 10000 overlay CSS and position: sticky; bottom: 0 for the actions row.

Test plan

  • All 32 Playwright tests pass locally against http://localhost:8080
  • python3 check_e2e_coverage.py --mode reportuncovered: 0
  • Apply dialog appears correctly as a modal when switching token sets
  • Cancel button is reachable within the viewport

- Add Playwright test suite covering all testable UI scenarios across 5
  specs: admin-settings, token-editor-ui, token-import-export,
  theming-sync-dialog, and token-set-apply-dialog (32 tests, all pass)
- Annotate 13 whole-spec @e2e exclude markers for pure backend/CSS/docs
  specs (component-tokens, css-architecture, custom-css-overrides,
  docs-content, extended-token-sets, hide-slogan, menu-labels,
  nextcloud-variable-mapping, nl-design, prometheus-metrics, theming-sync,
  token-set-dropdown, token-sets, token-sync-workflow, vng-token-set)
- Annotate per-scenario @e2e exclude markers for untestable scenarios in
  the 5 UI-surface specs (non-admin session, API internals, file mutations)
- Fix TokenSetPreviewService wrong CSS paths (css/defaults.css →
  css/systems/nldesign/defaults.css, css/overrides.css →
  css/systems/nldesign/overrides.css) — caused tokenset-preview endpoint
  to always return resolved:[] making the apply dialog never appear
- Fix missing .nldesign-dialog-overlay CSS (position: fixed, inset: 0,
  z-index: 10000) and .nldesign-dialog-actions sticky positioning so the
  Cancel button is reachable in the viewport during tests
- Gate-19 result: 0 uncovered, 31 covered, 408 excluded (439 total)
@rubenvdlinde rubenvdlinde merged commit 9d5b2bc into development May 27, 2026
@rubenvdlinde rubenvdlinde deleted the test/e2e-coverage-gate19 branch May 27, 2026 08:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant