Library: /pages (no id) shows the All-pages info view, not auto-opened page
release gate / check (push) Canceled after 1m2s

- Remove the auto-select-first-page effect so the Library index (filters,
  folder path, relative edited label, click-to-edit) is actually reachable
- Edited column uses Today/Yesterday/Mon D labels computed in the fetch callback
- Update mobile regression + e2e to the new /pages landing (index, not editor)
This commit is contained in:
Andrew S Erwin
2026-12-01 06:50:19 -06:00
parent 521987e16d
commit 4523a07fc0
4 changed files with 24 additions and 15 deletions
+3 -2
View File
@@ -58,7 +58,8 @@ try {
await page.getByPlaceholder('Password', { exact: true }).fill(password)
await page.getByRole('button', { name: 'Sign in with Email', exact: true }).click()
await page.waitForURL('**/pages')
await page.getByRole('heading', { name: 'No pages yet', exact: true }).waitFor()
// /pages with no id is the Library "All pages" info view (empty for a new account).
await page.getByRole('heading', { name: 'Library', exact: true }).waitFor()
const me = await json(await context.request.get(`${base}/api/me`))
accounts.push(me.user.id)
// Target/cleanup identity preflight (review TEST-03): the account created
@@ -140,7 +141,7 @@ try {
const moved = await json(await context.request.delete(`${base}/api/kanban/columns/${custom.id}`))
assert.equal(moved.moved, 1)
await page.goto(`${base}/pages`)
await page.getByRole('button', { name: 'New page', exact: true }).click()
await page.getByRole('button', { name: 'New page', exact: true }).first().click()
await page.getByRole('textbox', { name: 'Page title' }).waitFor()
// TipTap contenteditable: drive it with keyboard.insertText (fill() does
// not work on contenteditable) and watch the workspace save badge.