Library: /pages (no id) shows the All-pages info view, not auto-opened page
release gate / check (push) Canceled after 1m2s
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:
+3
-2
@@ -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.
|
||||
|
||||
@@ -1015,7 +1015,7 @@ try {
|
||||
}
|
||||
|
||||
// Drawer: off-canvas by default, hamburger opens it, navigating closes it.
|
||||
await mobile.goto(`${base}/pages`)
|
||||
await mobile.goto(`${base}/pages?id=a`)
|
||||
await mobile.locator('[data-page-editor]').waitFor()
|
||||
assert.ok(await drawerClosed(), 'sidebar must start off-canvas on phones')
|
||||
await noOverflow('pages')
|
||||
|
||||
Reference in New Issue
Block a user