test: increase editor visibility timeout in latency smoke test

The pinned properties bar adds a small amount of rendering time
to note opening. Increase timeout from 5s to 8s to reduce flakiness.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Test
2026-03-25 13:39:17 +01:00
parent 94112ffcd8
commit df7761b759

View File

@@ -21,7 +21,7 @@ test.describe('Improve note open latency', () => {
// Wait for the editor to have content
const editorContainer = page.locator('.editor__blocknote-container')
await expect(editorContainer).toBeVisible({ timeout: 5000 })
await expect(editorContainer).toBeVisible({ timeout: 8000 })
// The editor should have BlockNote content
const editorContent = page.locator('.bn-editor')
@@ -36,7 +36,7 @@ test.describe('Improve note open latency', () => {
// Editor should become visible with content
const editorContainer = page.locator('.editor__blocknote-container')
await expect(editorContainer).toBeVisible({ timeout: 5000 })
await expect(editorContainer).toBeVisible({ timeout: 8000 })
// The editor should have some BlockNote content
const editorContent = page.locator('.bn-editor')
@@ -62,7 +62,7 @@ test.describe('Improve note open latency', () => {
// The editor should be visible and functional
const editorContainer = page.locator('.editor__blocknote-container')
await expect(editorContainer).toBeVisible({ timeout: 5000 })
await expect(editorContainer).toBeVisible({ timeout: 8000 })
// The editor should have content loaded
const editorContent = page.locator('.bn-editor')