Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Return two e2e files to CI with known-bug pins and quarantines (#5149)

Nick Gomez8812336edd51
diff --git a/packages/app/package.json b/packages/app/package.json
index d1d81d8ff..d0a49e1db 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -37,7 +37,7 @@
"measure:stress": "bash scripts/measure-stress.sh",
"measure:sweep": "bash scripts/measure-sweep.sh",
"perf:compare": "bash scripts/perf-compare.sh",
- "test:e2e": "playwright test tests/stress/list-item-drag.e2e.ts tests/stress/ux-interactions.e2e.ts tests/stress/file-tree-create.e2e.ts tests/stress/file-tree-drag-to-root.e2e.ts tests/stress/file-tree-deselect-to-root.e2e.ts tests/stress/file-tree-collapse-spaced-folder.e2e.ts tests/stress/sidebar-file-list-fills.e2e.ts tests/stress/file-tree-sticky-collapse.e2e.ts tests/stress/file-tree-collapse-persistence.e2e.ts tests/stress/file-tree-fractional-zoom.e2e.ts tests/stress/create-then-rename-editable.e2e.ts tests/stress/find-replace.e2e.ts tests/stress/editor-tabs.e2e.ts tests/stress/crdt-stress.e2e.ts tests/stress/slash-command.e2e.ts tests/stress/paste-fidelity.e2e.ts tests/stress/fr-7a-disconnect-source-mode.e2e.ts tests/stress/docs-open.e2e.ts tests/stress/frozen-table-headers.e2e.ts tests/stress/asset-embed.e2e.ts tests/stress/asset-embed-advanced.e2e.ts tests/stress/asset-click-dispatch.e2e.ts tests/stress/handoff.e2e.ts tests/stress/multi-agent-presence.e2e.ts tests/stress/editor-mode-persistence.e2e.ts tests/stress/lint-config-toggle.e2e.ts tests/stress/plugin-enable-notice.e2e.ts tests/stress/schema-edit-fields-view.e2e.ts tests/stress/sidebar-search-pill.e2e.ts tests/stress/navigation-history.e2e.ts tests/stress/command-palette-semantic.e2e.ts tests/stress/agent-activity-panel.e2e.ts tests/stress/drop-pipeline-auto-open.e2e.ts tests/stress/command-palette-flicker.e2e.ts tests/stress/cm6-list-hanging-indent.e2e.ts tests/stress/ng7-rapid-nav-coherence.e2e.ts tests/stress/reveal-on-activate.e2e.ts tests/stress/selection-indicator.e2e.ts tests/stress/new-file-cross-doc-bleed.e2e.ts tests/stress/new-item-shortcut-fast-path.e2e.ts tests/stress/editor-mode-flip-cross-doc-bleed.e2e.ts tests/stress/editor-area-viewport-resize.e2e.ts tests/stress/qa-sidebar-responsive.e2e.ts tests/stress/prd-6955-reassertion-repro.e2e.ts tests/stress/prd-6955-reassertion-wedge.e2e.ts tests/stress/prd-6914-repro.e2e.ts tests/stress/showall-lazy-tree.e2e.ts tests/stress/tabs-component-strip.e2e.ts tests/stress/source-find-scroll.e2e.ts tests/stress/harness-app-warmth.e2e.ts tests/stress/qa-canary-authoring-both-modes.e2e.ts tests/stress/qa-canary-live-typing.e2e.ts tests/stress/keystroke-cadence-danger-space.e2e.ts tests/stress/jsx-unregistered-backspace-delete.e2e.ts tests/stress/jsx-unregistered-ime-concurrent.e2e.ts tests/stress/jsx-backspace-delete.e2e.ts tests/stress/link-authoring-bytes.e2e.ts tests/stress/link-authoring-apex.e2e.ts tests/stress/command-palette-parity.e2e.ts tests/stress/settings-search.e2e.ts tests/stress/okf-generated-index-settings.e2e.ts tests/stress/okf-recommended-skill-install.e2e.ts tests/stress/chip-popover-positioning.e2e.ts tests/stress/docs-open-scroll-restore.e2e.ts tests/stress/file-tree-decoration-chip-strip-repro.e2e.ts tests/stress/grip-click-nodeselect.e2e.ts tests/stress/jsx-halo-semantics.e2e.ts tests/stress/jsx-image-body-click.e2e.ts tests/stress/jsx-prop-panel-placeholder.e2e.ts tests/stress/jsx-range-encompass-halo.e2e.ts tests/stress/jsx-wildcard-convert.e2e.ts tests/stress/markdown-lint.e2e.ts tests/stress/frontmatter-schema-badge.e2e.ts tests/stress/frontmatter-glob-picker.e2e.ts tests/stress/unified-problems.e2e.ts tests/stress/mid-type-recovery.e2e.ts tests/stress/observer-a-multi-client.e2e.ts tests/stress/outline-toolbar-occlusion.e2e.ts tests/stress/selection-surface-pane-clip.e2e.ts tests/stress/quiet-tree-hidden-doc.e2e.ts tests/stress/raw-mdx-fallback-onblur-upgrade.e2e.ts tests/stress/rename-noext-probe.e2e.ts tests/stress/show-ok-folders.e2e.ts tests/stress/source-polish.e2e.ts tests/stress/warm-skeleton-scroll-restore.e2e.ts tests/stress/props-toggle-scroll-preserve.e2e.ts tests/stress/yjs-no-dual-import.e2e.ts tests/stress/graph-panel-surfaces.e2e.ts tests/stress/asset-embed-real-fidelity.e2e.ts tests/stress/image-invalid-placeholder.e2e.ts tests/stress/local-target-audit.e2e.ts tests/stress/rename-content-preservation.e2e.ts tests/stress/rename-consolidation.e2e.ts tests/stress/outline-active-heading.e2e.ts tests/stress/outline-navigation.e2e.ts tests/stress/prd-7627-default-swatch.e2e.ts tests/stress/clipboard-dollar-math-source-fallback.e2e.ts tests/stress/source-mode-undo-keymap.e2e.ts tests/stress/source-undo-mode-flip.e2e.ts tests/stress/timeline-recovered-restore.e2e.ts tests/stress/blank-line-preservation.e2e.ts tests/stress/landing-helpers.e2e.ts tests/stress/agent-follow-scroll.e2e.ts tests/stress/mode-switch-landing.e2e.ts tests/stress/mode-switch-ordinal-divergence.e2e.ts tests/stress/comment-annotation-visibility.e2e.ts tests/stress/comment-opens-in-panel.e2e.ts tests/stress/qa-miles-edge-blanks.e2e.ts tests/stress/prop-upload.e2e.ts tests/stress/slash-command-auto-open.e2e.ts tests/stress/clipboard-relative-url-source-fallback.e2e.ts tests/stress/editor-split-view.e2e.ts tests/stress/language-load-failure.e2e.ts tests/stress/language-first-paint.e2e.ts tests/stress/user-text-direction.e2e.ts tests/stress/pseudolocale.e2e.ts tests/stress/language-picker.e2e.ts tests/stress/zh-hans-coverage-sweep.e2e.ts tests/stress/preview-tab-promotion.e2e.ts tests/stress/cv-paint-lock-click.e2e.ts tests/stress/cv-auto-paint-lock-click.e2e.ts tests/stress/history-traversal-preview-tab.e2e.ts tests/stress/tab-close-scroll-restore.e2e.ts tests/stress/skills-sidebar-open.e2e.ts tests/stress/trailing-affordance.e2e.ts tests/stress/text-doc-composer-inset.e2e.ts tests/stress/composer-control-alignment.e2e.ts tests/stress/agents-settings-accessible-names.e2e.ts tests/stress/composer-growth-eof-reveal.e2e.ts tests/stress/theme-fade.e2e.ts tests/stress/theme-color-conversion.e2e.ts tests/stress/composer-open-caret-reveal.e2e.ts tests/stress/spellcheck-browser-absence.e2e.ts tests/stress/agents-panel-reload-visibility.e2e.ts tests/stress/rail-flex-distribution-law.e2e.ts tests/stress/audit-409-console-record.e2e.ts tests/stress/pagelist-refresh-lifetime.e2e.ts",
+ "test:e2e": "playwright test tests/stress/list-item-drag.e2e.ts tests/stress/ux-interactions.e2e.ts tests/stress/file-tree-create.e2e.ts tests/stress/file-tree-drag-to-root.e2e.ts tests/stress/file-tree-deselect-to-root.e2e.ts tests/stress/file-tree-collapse-spaced-folder.e2e.ts tests/stress/sidebar-file-list-fills.e2e.ts tests/stress/file-tree-sticky-collapse.e2e.ts tests/stress/file-tree-collapse-persistence.e2e.ts tests/stress/file-tree-fractional-zoom.e2e.ts tests/stress/create-then-rename-editable.e2e.ts tests/stress/find-replace.e2e.ts tests/stress/editor-tabs.e2e.ts tests/stress/crdt-stress.e2e.ts tests/stress/slash-command.e2e.ts tests/stress/paste-fidelity.e2e.ts tests/stress/fr-7a-disconnect-source-mode.e2e.ts tests/stress/docs-open.e2e.ts tests/stress/frozen-table-headers.e2e.ts tests/stress/asset-embed.e2e.ts tests/stress/asset-embed-advanced.e2e.ts tests/stress/asset-click-dispatch.e2e.ts tests/stress/handoff.e2e.ts tests/stress/multi-agent-presence.e2e.ts tests/stress/editor-mode-persistence.e2e.ts tests/stress/lint-config-toggle.e2e.ts tests/stress/plugin-enable-notice.e2e.ts tests/stress/schema-edit-fields-view.e2e.ts tests/stress/sidebar-search-pill.e2e.ts tests/stress/navigation-history.e2e.ts tests/stress/command-palette-semantic.e2e.ts tests/stress/agent-activity-panel.e2e.ts tests/stress/drop-pipeline-auto-open.e2e.ts tests/stress/command-palette-flicker.e2e.ts tests/stress/cm6-list-hanging-indent.e2e.ts tests/stress/ng7-rapid-nav-coherence.e2e.ts tests/stress/reveal-on-activate.e2e.ts tests/stress/selection-indicator.e2e.ts tests/stress/new-file-cross-doc-bleed.e2e.ts tests/stress/new-item-shortcut-fast-path.e2e.ts tests/stress/editor-mode-flip-cross-doc-bleed.e2e.ts tests/stress/editor-area-viewport-resize.e2e.ts tests/stress/qa-sidebar-responsive.e2e.ts tests/stress/prd-6955-reassertion-repro.e2e.ts tests/stress/prd-6955-reassertion-wedge.e2e.ts tests/stress/prd-6914-repro.e2e.ts tests/stress/showall-lazy-tree.e2e.ts tests/stress/tabs-component-strip.e2e.ts tests/stress/source-find-scroll.e2e.ts tests/stress/harness-app-warmth.e2e.ts tests/stress/qa-canary-authoring-both-modes.e2e.ts tests/stress/qa-canary-live-typing.e2e.ts tests/stress/keystroke-cadence-danger-space.e2e.ts tests/stress/jsx-unregistered-backspace-delete.e2e.ts tests/stress/jsx-unregistered-ime-concurrent.e2e.ts tests/stress/jsx-backspace-delete.e2e.ts tests/stress/link-authoring-bytes.e2e.ts tests/stress/link-authoring-apex.e2e.ts tests/stress/command-palette-parity.e2e.ts tests/stress/settings-search.e2e.ts tests/stress/okf-generated-index-settings.e2e.ts tests/stress/okf-recommended-skill-install.e2e.ts tests/stress/chip-popover-positioning.e2e.ts tests/stress/docs-open-scroll-restore.e2e.ts tests/stress/file-tree-decoration-chip-strip-repro.e2e.ts tests/stress/grip-click-nodeselect.e2e.ts tests/stress/jsx-halo-semantics.e2e.ts tests/stress/jsx-image-body-click.e2e.ts tests/stress/jsx-prop-panel-placeholder.e2e.ts tests/stress/jsx-range-encompass-halo.e2e.ts tests/stress/jsx-wildcard-convert.e2e.ts tests/stress/markdown-lint.e2e.ts tests/stress/frontmatter-schema-badge.e2e.ts tests/stress/frontmatter-glob-picker.e2e.ts tests/stress/unified-problems.e2e.ts tests/stress/mid-type-recovery.e2e.ts tests/stress/observer-a-multi-client.e2e.ts tests/stress/outline-toolbar-occlusion.e2e.ts tests/stress/selection-surface-pane-clip.e2e.ts tests/stress/quiet-tree-hidden-doc.e2e.ts tests/stress/raw-mdx-fallback-onblur-upgrade.e2e.ts tests/stress/rename-noext-probe.e2e.ts tests/stress/show-ok-folders.e2e.ts tests/stress/source-polish.e2e.ts tests/stress/warm-skeleton-scroll-restore.e2e.ts tests/stress/props-toggle-scroll-preserve.e2e.ts tests/stress/yjs-no-dual-import.e2e.ts tests/stress/graph-panel-surfaces.e2e.ts tests/stress/asset-embed-real-fidelity.e2e.ts tests/stress/image-invalid-placeholder.e2e.ts tests/stress/local-target-audit.e2e.ts tests/stress/rename-content-preservation.e2e.ts tests/stress/rename-consolidation.e2e.ts tests/stress/outline-active-heading.e2e.ts tests/stress/outline-navigation.e2e.ts tests/stress/prd-7627-default-swatch.e2e.ts tests/stress/clipboard-dollar-math-source-fallback.e2e.ts tests/stress/source-mode-undo-keymap.e2e.ts tests/stress/source-undo-mode-flip.e2e.ts tests/stress/timeline-recovered-restore.e2e.ts tests/stress/blank-line-preservation.e2e.ts tests/stress/landing-helpers.e2e.ts tests/stress/agent-follow-scroll.e2e.ts tests/stress/mode-switch-landing.e2e.ts tests/stress/mode-switch-ordinal-divergence.e2e.ts tests/stress/comment-annotation-visibility.e2e.ts tests/stress/comment-opens-in-panel.e2e.ts tests/stress/qa-miles-edge-blanks.e2e.ts tests/stress/prop-upload.e2e.ts tests/stress/slash-command-auto-open.e2e.ts tests/stress/clipboard-relative-url-source-fallback.e2e.ts tests/stress/editor-split-view.e2e.ts tests/stress/language-load-failure.e2e.ts tests/stress/language-first-paint.e2e.ts tests/stress/user-text-direction.e2e.ts tests/stress/pseudolocale.e2e.ts tests/stress/language-picker.e2e.ts tests/stress/zh-hans-coverage-sweep.e2e.ts tests/stress/preview-tab-promotion.e2e.ts tests/stress/cv-paint-lock-click.e2e.ts tests/stress/cv-auto-paint-lock-click.e2e.ts tests/stress/history-traversal-preview-tab.e2e.ts tests/stress/tab-close-scroll-restore.e2e.ts tests/stress/skills-sidebar-open.e2e.ts tests/stress/trailing-affordance.e2e.ts tests/stress/text-doc-composer-inset.e2e.ts tests/stress/composer-control-alignment.e2e.ts tests/stress/agents-settings-accessible-names.e2e.ts tests/stress/composer-growth-eof-reveal.e2e.ts tests/stress/theme-fade.e2e.ts tests/stress/theme-color-conversion.e2e.ts tests/stress/composer-open-caret-reveal.e2e.ts tests/stress/spellcheck-browser-absence.e2e.ts tests/stress/agents-panel-reload-visibility.e2e.ts tests/stress/rail-flex-distribution-law.e2e.ts tests/stress/audit-409-console-record.e2e.ts tests/stress/pagelist-refresh-lifetime.e2e.ts tests/stress/list-keymap.e2e.ts tests/stress/okignore-settings.e2e.ts",
"test:e2e:install-browsers": "playwright install chromium webkit firefox",
"test:visual": "playwright test --config playwright.visual.config.ts",
"test:visual:update": "playwright test --config playwright.visual.config.ts --update-snapshots",
diff --git a/packages/app/tests/stress/e2e-ci-ledger.ts b/packages/app/tests/stress/e2e-ci-ledger.ts
index 49be11afe..a7fcc3a38 100644
--- a/packages/app/tests/stress/e2e-ci-ledger.ts
+++ b/packages/app/tests/stress/e2e-ci-ledger.ts
@@ -12,18 +12,4 @@ export const E2E_CI_EXCLUSIONS: readonly E2eCiLedgerEntry[] = [
evidence:
'agent-write-md returns 400 for a duplicate-title / ": : : invalid" frontmatter body; the duplicate-marker and yaml-error-banner surfaces still exist in src (FrontmatterRow / PropertyPanel), so the suite is repairable once the fixture lands',
},
- {
- file: 'list-keymap.e2e.ts',
- reason:
- 'pins live bugs inkeep/agents-private#2817 (WYSIWYG Tab/Shift-Tab list indent/outdent mutates the ProseMirror fragment but never mirrors to Y.Text — normalizeBridge step 7c strips leading indent so Observer A gates the drain as already-in-sync) and #2818 (ordered-list Enter replays the inherited sourceOrdinal, emitting "1." instead of the documented position-based "2."). The two indent-mirror tests and the ordinal test are correct executable specs of those bugs. Promote in the fix PR.',
- evidence:
- 'Tab/Shift-Tab leave Y.Text byte-identical to the flat seed after the sink/lift renders in the DOM; ordered Enter settles to "1. sf\\n1. "; a 4th failure is an e2e caret-placement race whose app logic is proven at the unit tier (list-boundary-merge.test.ts)',
- },
- {
- file: 'okignore-settings.e2e.ts',
- reason:
- 'pins live regression inkeep/agents-private#2816: right-click "Hide this file"/"Hide folder" commits the .okignore pattern and shows its toast, but the sidebar row never disappears — the tree fetches a showAll disk walk whose client-side filter has no okignore awareness, so no rebuild/CC1/refetch can remove the row. The 2 US-013 tests are correct RED specs of that bug. (The 4 US-010 settings-navigation drift tests were repaired in this PR.) Promote in the fix PR.',
- evidence:
- 'after the US-010 repair, 17 pass / 2 fail locally; the 2 Hide tests fail deterministically (row visible for the full 10s window) while the success toast fires and the pattern lands in Settings',
- },
];
diff --git a/packages/app/tests/stress/list-keymap.e2e.ts b/packages/app/tests/stress/list-keymap.e2e.ts
index c900e4d02..48101e745 100644
--- a/packages/app/tests/stress/list-keymap.e2e.ts
+++ b/packages/app/tests/stress/list-keymap.e2e.ts
@@ -1,5 +1,6 @@
import { randomUUID } from 'node:crypto';
import type { Page } from '@playwright/test';
+import { expectKnownBug } from '../../../../test-support/known-bug.test-helper';
import {
type ApiHelpers,
expect,
@@ -34,41 +35,6 @@ function uniqueDocName(label: string): string {
}
test.describe('OQ1: Tab/Shift-Tab scoping by cursor context', () => {
- test('Tab inside a listItem increases list depth', async ({ page, api }) => {
- const docName = uniqueDocName('tab-listitem');
- await openDoc(api, page, docName);
- await seedMarkdown(api, page, docName, '- first\n- second\n');
-
- await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
- await page.locator('.ProseMirror li').nth(1).click();
- await page.keyboard.press('End');
-
- await waitForPmSelectionInNode(page, 'listItem');
-
- await page.keyboard.press('Tab');
-
- await expect.poll(() => getYText(page)).toMatch(/ {2}[-*+] second/);
- const ytext = await getYText(page);
- expect(ytext).toContain('- first');
- });
-
- test('Shift-Tab inside a nested listItem lifts it one level', async ({ page, api }) => {
- const docName = uniqueDocName('shifttab-nested');
- await openDoc(api, page, docName);
- await seedMarkdown(api, page, docName, '- top\n - nested\n');
-
- await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
- const nestedLi = page.locator('.ProseMirror li li').first();
- await nestedLi.click();
- await page.keyboard.press('End');
-
- await waitForPmSelectionInNode(page, 'listItem');
-
- await page.keyboard.press('Shift+Tab');
-
- await expect.poll(() => getYText(page)).toMatch(/^- top\n- nested/m);
- });
-
test('Tab inside a tableCell advances to the next cell (list keymap does NOT hijack)', async ({
page,
api,
@@ -149,37 +115,6 @@ test.describe('OQ1: Tab/Shift-Tab scoping by cursor context', () => {
await expect.poll(() => getYText(page)).toMatch(/^- sf\n- ?$/m);
});
- test('Enter at end of a non-empty ordered item creates a new ordered item', async ({
- page,
- api,
- }) => {
- const docName = uniqueDocName('enter-ordered');
- await openDoc(api, page, docName);
- await seedMarkdown(api, page, docName, '1. sf\n');
-
- await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
- await page.locator('.ProseMirror li').first().click();
- await page.keyboard.press('End');
- await waitForPmSelectionInNode(page, 'listItem');
-
- await page.keyboard.press('Enter');
- await expect.poll(() => getYText(page)).toMatch(/^1\. sf\n2\. ?$/m);
- });
-
- test('Enter at end of a task item creates a new task item', async ({ page, api }) => {
- const docName = uniqueDocName('enter-task');
- await openDoc(api, page, docName);
- await seedMarkdown(api, page, docName, '- [ ] sf\n');
-
- await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
- await page.locator('.ProseMirror li').first().click();
- await page.keyboard.press('End');
- await waitForPmSelectionInNode(page, 'listItem');
-
- await page.keyboard.press('Enter');
- await expect.poll(() => getYText(page)).toMatch(/^- \[ \] sf\n- \[ \] ?$/m);
- });
-
test('Backspace on the empty line after a list merges back in (no stray bullet)', async ({
page,
api,
@@ -224,10 +159,14 @@ test.describe('OQ1: Tab/Shift-Tab scoping by cursor context', () => {
expect(ytext).not.toMatch(/- *\n {2}- *\n {2}- /);
});
- test('Typing "1. " below a bullet list starts a numbered list, not another bullet', async ({
- page,
- api,
- }) => {
+ test.skip('Typing "1. " below a bullet list starts a numbered list, not another bullet', {
+ tag: '@quarantine',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/5147' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
const docName = uniqueDocName('ordered-after-bullet');
await openDoc(api, page, docName);
await seedMarkdown(api, page, docName, '- bullet item\n');
@@ -246,24 +185,6 @@ test.describe('OQ1: Tab/Shift-Tab scoping by cursor context', () => {
expect(ytext).toContain('- bullet item');
expect(ytext).not.toMatch(/^- *$/m);
});
-
- test.fixme('Tab inside a codeBlock inserts 2 spaces', async ({ page, api }) => {
- const docName = uniqueDocName('tab-codeblock');
- await openDoc(api, page, docName);
- await seedMarkdown(api, page, docName, '```\nfirst\n```\n');
-
- await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
- await page.locator('.ProseMirror pre code').click();
- await page.keyboard.press('End');
-
- await page.keyboard.press('Tab');
-
- await expect.poll(() => getYText(page)).toMatch(/first {2}/);
- const ytext = await getYText(page);
- expect(ytext).toMatch(/first {2}/);
- expect(ytext).toContain('```');
- expect(ytext).not.toMatch(/^- /m);
- });
});
test.describe('Nested list-item boundary merges (Backspace/Delete)', () => {
@@ -288,10 +209,14 @@ test.describe('Nested list-item boundary merges (Backspace/Delete)', () => {
expect(ytext).toContain('- [ ] top');
});
- test('Delete at the end of a nested item merges the next top-level item at the correct depth', async ({
- page,
- api,
- }) => {
+ test.skip('Delete at the end of a nested item merges the next top-level item at the correct depth', {
+ tag: '@quarantine',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/5147' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
const docName = uniqueDocName('del-merge-depth');
await openDoc(api, page, docName);
await seedMarkdown(api, page, docName, '- [ ] a\n - [ ] b\n - [ ] c\n- [ ] d\n');
@@ -310,3 +235,133 @@ test.describe('Nested list-item boundary merges (Backspace/Delete)', () => {
expect(ytext).not.toMatch(/^- d$/m);
});
});
+
+test.describe('known bugs in the list and code-block keymaps', () => {
+ test.describe.configure({ retries: 0 });
+
+ test('Tab inside a listItem increases list depth', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/2817' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const docName = uniqueDocName('tab-listitem');
+ await openDoc(api, page, docName);
+ await seedMarkdown(api, page, docName, '- first\n- second\n');
+
+ await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
+ await page.locator('.ProseMirror li').nth(1).click();
+ await page.keyboard.press('End');
+
+ await waitForPmSelectionInNode(page, 'listItem');
+
+ await page.keyboard.press('Tab');
+
+ await expectKnownBug(/Received string:\s+"- first\n- second/, async () => {
+ await expect.poll(() => getYText(page)).toMatch(/ {2}[-*+] second/);
+ });
+ const ytext = await getYText(page);
+ expect(ytext).toContain('- first');
+ });
+
+ test('Shift-Tab inside a nested listItem lifts it one level', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/2817' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const docName = uniqueDocName('shifttab-nested');
+ await openDoc(api, page, docName);
+ await seedMarkdown(api, page, docName, '- top\n - nested\n');
+
+ await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
+ const nestedLi = page.locator('.ProseMirror li li').first();
+ await nestedLi.click();
+ await page.keyboard.press('End');
+
+ await waitForPmSelectionInNode(page, 'listItem');
+
+ await page.keyboard.press('Shift+Tab');
+
+ await expectKnownBug(/Received string:\s+"- top\n {2}- nested/, async () => {
+ await expect.poll(() => getYText(page)).toMatch(/^- top\n- nested/m);
+ });
+ });
+
+ test('Enter at end of a non-empty ordered item creates a new ordered item', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/2818' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const docName = uniqueDocName('enter-ordered');
+ await openDoc(api, page, docName);
+ await seedMarkdown(api, page, docName, '1. sf\n');
+
+ await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
+ await page.locator('.ProseMirror li').first().click();
+ await page.keyboard.press('End');
+ await waitForPmSelectionInNode(page, 'listItem');
+
+ await page.keyboard.press('Enter');
+ await expectKnownBug(/Received string:\s+"1\. sf\n1\./, async () => {
+ await expect.poll(() => getYText(page)).toMatch(/^1\. sf\n2\. ?$/m);
+ });
+ });
+
+ test('Enter at end of a task item creates a new task item', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/5146' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const docName = uniqueDocName('enter-task');
+ await openDoc(api, page, docName);
+ await seedMarkdown(api, page, docName, '- [ ] sf\n');
+
+ await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
+ await page.locator('.ProseMirror li').first().click();
+ await page.keyboard.press('End');
+ await waitForPmSelectionInNode(page, 'listItem');
+
+ await page.keyboard.press('Enter');
+ await expectKnownBug(/ /, async () => {
+ await expect.poll(() => getYText(page)).toMatch(/^- \[ \] sf\n- \[ \] ?$/m);
+ });
+ });
+
+ test('Tab inside a codeBlock inserts 2 spaces', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/5145' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const docName = uniqueDocName('tab-codeblock');
+ await openDoc(api, page, docName);
+ await seedMarkdown(api, page, docName, '```\nfirst\n```\n');
+
+ await page.locator('.ProseMirror:not(.composer-prosemirror)').focus();
+ await page.locator('.ProseMirror pre code').click();
+ await page.keyboard.press('End');
+
+ await page.keyboard.press('Tab');
+
+ await expectKnownBug(/Received string:\s+"```\nfirst\n```/, async () => {
+ await expect.poll(() => getYText(page)).toMatch(/first {2}/);
+ expect(await getYText(page)).toMatch(/first {2}/);
+ });
+ const ytext = await getYText(page);
+ expect(ytext).toContain('```');
+ expect(ytext).not.toMatch(/^- /m);
+ });
+});
diff --git a/packages/app/tests/stress/mode-switch-ordinal-divergence.e2e.ts b/packages/app/tests/stress/mode-switch-ordinal-divergence.e2e.ts
index 4e2c802bb..766b02806 100644
--- a/packages/app/tests/stress/mode-switch-ordinal-divergence.e2e.ts
+++ b/packages/app/tests/stress/mode-switch-ordinal-divergence.e2e.ts
@@ -1,5 +1,6 @@
import { randomUUID } from 'node:crypto';
import type { Page } from '@playwright/test';
+import { expectKnownBug } from '../../../../test-support/known-bug.test-helper';
import {
expect,
landingMarkCount,
@@ -109,86 +110,98 @@ async function openSplitDoc(
.toBe(false);
}
-test('KNOWN-BUG: view-in-source jump lands one block past the target on a divergent doc; the unverified landing must not flash', async ({
- page,
- api,
-}) => {
- const name = docName('jump');
- await openSplitDoc(page, api, name);
-
- await selectText(page, EOL_TAIL);
- const bubble = page.getByTestId(VIEW_IN_SOURCE_BUBBLE);
- await expect(bubble, 'the View in source bubble entry did not appear').toBeVisible();
-
- const before = await landingMarkCount(page);
- await bubble.click();
- const mark = await waitForLandingSettled(page, { since: before });
- expect(mark.kind, `jump did not land (grade ${mark.grade})`).toBe('land');
-
- const landed = await caretLine(page);
- const flashes = await page.locator(LANDING_FLASH).count();
- console.log(
- `landing: grade=${mark.grade} caret head=${landed.head} -> line ${landed.line}: ${JSON.stringify(landed.text)}, flash spans=${flashes}`,
- );
-
- expect(mark.grade).toBe('ordinal');
-
- expect(flashes, 'an ordinal-grade landing must not paint the landing flash').toBe(0);
+test.describe('landings on a document with adjacent lists', () => {
+ test.describe.configure({ retries: 0 });
+
+ test('view-in-source jumps to the selected block of a divergent doc, and an unverified landing does not flash', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/5143' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const name = docName('jump');
+ await openSplitDoc(page, api, name);
+
+ await selectText(page, EOL_TAIL);
+ const bubble = page.getByTestId(VIEW_IN_SOURCE_BUBBLE);
+ await expect(bubble, 'the View in source bubble entry did not appear').toBeVisible();
+
+ const before = await landingMarkCount(page);
+ await bubble.click();
+ const mark = await waitForLandingSettled(page, { since: before });
+ expect(mark.kind, `jump did not land (grade ${mark.grade})`).toBe('land');
+
+ const landed = await caretLine(page);
+ const flashes = await page.locator(LANDING_FLASH).count();
+ console.log(
+ `landing: grade=${mark.grade} caret head=${landed.head} -> line ${landed.line}: ${JSON.stringify(landed.text)}, flash spans=${flashes}`,
+ );
+
+ expect(mark.grade).toBe('ordinal');
+
+ expect(flashes, 'an ordinal-grade landing must not paint the landing flash').toBe(0);
+
+ await expectKnownBug(/Received string:\s+"competitors"/, () => {
+ expect(landed.text).toContain(EOL_TAIL);
+ });
+ });
- expect(
- landed.text,
- 'landing moved off the known-wrong block — the mis-landing may be fixed; flip this assertion to the correct target',
- ).toContain('competitors');
-});
+ test('the plain mode toggle keeps the anchored block on a divergent doc', {
+ tag: '@known-bug',
+ annotation: [
+ { type: 'issue', description: 'https://github.com/inkeep/agents-private/issues/5143' },
+ { type: 'owner', description: 'get-main-green' },
+ { type: 'until', description: '2026-12-15' },
+ ],
+ }, async ({ page, api }) => {
+ const name = docName('toggle');
+ await openSplitDoc(page, api, name, PADDING);
+
+ const anchor = 'BLOCK-060';
+ const residual = await scrollWysiwygBlockToTop(page, anchor);
+ expect(Math.abs(residual), 'setup scroll did not converge').toBeLessThan(40);
+
+ const before = await landingMarkCount(page);
+ await toggleMode(page, 'source');
+ const mark = await waitForLandingSettled(page, { since: before });
+ expect(mark.kind, `toggle did not land (grade ${mark.grade})`).toBe('land');
+
+ expect(mark.grade).toBe('ordinal');
+
+ const topLine = await page.evaluate(() => {
+ const scroller = Array.from(
+ document.querySelectorAll<HTMLElement>('[data-testid="editor-scroll-container"]'),
+ ).find((el) => el.getClientRects().length > 0);
+ if (!scroller) throw new Error('no visible scroll container');
+ const content = Array.from(document.querySelectorAll<HTMLElement>('.cm-editor'))
+ .find((el) => el.getClientRects().length > 0)
+ ?.querySelector('.cm-content');
+ const handle = content as
+ | (Element & {
+ cmTile?: { root?: { view?: unknown } };
+ cmView?: { rootView?: { view?: unknown } };
+ })
+ | null;
+ const view = (handle?.cmTile?.root?.view ?? handle?.cmView?.rootView?.view) as
+ | {
+ posAtCoords: (c: { x: number; y: number }, precise: boolean) => number;
+ state: { doc: { lineAt: (p: number) => { number: number; text: string } } };
+ }
+ | undefined;
+ if (!view) throw new Error('no CodeMirror view');
+ const box = scroller.getBoundingClientRect();
+ const pos = view.posAtCoords({ x: box.left + 40, y: box.top + 56 + 4 }, false);
+ const line = view.state.doc.lineAt(pos);
+ return `L${line.number}: ${line.text}`;
+ });
+ console.log(
+ `toggle: grade=${mark.grade} anchored=${anchor} topmost=${JSON.stringify(topLine)}`,
+ );
-test('KNOWN-BUG: the plain mode toggle mis-anchors by one block on a divergent doc', async ({
- page,
- api,
-}) => {
- const name = docName('toggle');
- await openSplitDoc(page, api, name, PADDING);
-
- const anchor = 'BLOCK-060';
- const residual = await scrollWysiwygBlockToTop(page, anchor);
- expect(Math.abs(residual), 'setup scroll did not converge').toBeLessThan(40);
-
- const before = await landingMarkCount(page);
- await toggleMode(page, 'source');
- const mark = await waitForLandingSettled(page, { since: before });
- expect(mark.kind, `toggle did not land (grade ${mark.grade})`).toBe('land');
-
- expect(mark.grade).toBe('ordinal');
-
- const topLine = await page.evaluate(() => {
- const scroller = Array.from(
- document.querySelectorAll<HTMLElement>('[data-testid="editor-scroll-container"]'),
- ).find((el) => el.getClientRects().length > 0);
- if (!scroller) throw new Error('no visible scroll container');
- const content = Array.from(document.querySelectorAll<HTMLElement>('.cm-editor'))
- .find((el) => el.getClientRects().length > 0)
- ?.querySelector('.cm-content');
- const handle = content as
- | (Element & {
- cmTile?: { root?: { view?: unknown } };
- cmView?: { rootView?: { view?: unknown } };
- })
- | null;
- const view = (handle?.cmTile?.root?.view ?? handle?.cmView?.rootView?.view) as
- | {
- posAtCoords: (c: { x: number; y: number }, precise: boolean) => number;
- state: { doc: { lineAt: (p: number) => { number: number; text: string } } };
- }
- | undefined;
- if (!view) throw new Error('no CodeMirror view');
- const box = scroller.getBoundingClientRect();
- const pos = view.posAtCoords({ x: box.left + 40, y: box.top + 56 + 4 }, false);
- const line = view.state.doc.lineAt(pos);
- return `L${line.number}: ${line.text}`;
+ await expectKnownBug(/BLOCK-061 padding paragraph/, () => {
+ expect(topLine).toContain(anchor);
+ });
});
- console.log(`toggle: grade=${mark.grade} anchored=${anchor} topmost=${JSON.stringify(topLine)}`);
-
- expect(
- topLine,
- 'the toggle preserved the anchored block — the mis-anchor may be fixed; flip this assertion to require the anchor',
- ).not.toContain(anchor);
});