Skip to content

T-M8PU-notes-chrome-e2e

State: closed/done · Impact: high · Complexity: small

The notes Playwright project covers editing, reading and find but none of the new chrome. This task adds one spec that exercises the toolbar, bubble menu, slash menu, wikilink picker and mode cycle in the real product, and asserts the byte-exact save contract.

LocationRole today
solutions/determined/playwright.config.tsnotes project: testDir: 'tests/ui', testMatch: 'notes/**/*.e2e.ts', base URL port 4891
solutions/determined/tests/ui/notes/editor.e2e.tsEditing flows, CAS conflict dialog
solutions/determined/tests/ui/notes/find.e2e.tsFind bar flows
solutions/determined/tests/ui/notes/reading.e2e.tsReading view and mode switch
solutions/determined/tests/ui/serve-notes.tsServes the notes product against the fixture vault
solutions/determined/tests/fixtures/obsidian-vault/Fixture vault the notes project reads

solutions/determined/tests/ui/notes/chrome.e2e.ts with one test per behaviour: toolbar Bold on a selection wraps it in **; the bubble menu appears on a non-empty selection outside code and never takes focus; / opens the slash list and choosing Heading 2 inserts ## ; [[ opens completion over fixture notes and Enter inserts the wikilink; mod+shift+m cycles read, live, source, read with the cursor line preserved; saving an unedited note leaves the file bytes unchanged and editing one line changes only that line.

  1. Add a fixture note chrome.md under solutions/determined/tests/fixtures/obsidian-vault/ with a paragraph, a fenced block and a table.
  2. Write chrome.e2e.ts using the md-* test ids from the layer (md-toolbar, md-bubble, md-mode-toggle) and the notes-editor id; read fixture bytes through the existing serve helper for the byte-diff assertions.
  3. Run bunx playwright test --project notes from solutions/determined; attach the trace on failure.
  4. moon run :check :test --affected.
LocationKindChange
solutions/determined/tests/ui/notes/chrome.e2e.tsnewThe chrome spec
solutions/determined/tests/fixtures/obsidian-vault/chrome.mdnewFixture note
  • AC-1: chrome.e2e.ts exists and bunx playwright test --project notes passes with it.
  • AC-2: The spec contains one test each for toolbar Bold, bubble menu, /, [[, mod+shift+m and byte-diff.
  • AC-3: The byte-diff test asserts the fixture file’s sha is unchanged after an unedited save and that a one-line edit produces a one-line difference.
  • AC-4: The bubble test asserts document.activeElement stays inside .cm-content while the bubble is open.

Member of milestone M-931L; the C7 verification step of D-K3EM-markdown-editor-chrome-and-plugin-environment.

T-3DFJ-notes-adopts-markdown-ui


← Back to Tasks