test: stabilize the pre-push smoke lane

This commit is contained in:
lucaronin
2026-04-08 10:01:34 +02:00
parent be57656d75
commit e3eb774757
6 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "playwright test",
"playwright:smoke": "playwright test --config playwright.smoke.config.ts tests/smoke/example.spec.ts tests/smoke/fix-ai-chat-empty-body-v3.spec.ts tests/smoke/create-note-crash.spec.ts tests/smoke/raw-editor-sync-to-blocknote.spec.ts tests/smoke/rename-wikilink-update.spec.ts",
"playwright:smoke": "playwright test --config playwright.smoke.config.ts tests/smoke/example.spec.ts tests/smoke/fix-ai-chat-empty-body-v3.spec.ts tests/integration/vault-workflows.spec.ts",
"playwright:regression": "playwright test tests/smoke/",
"playwright:integration": "playwright test --config playwright.integration.config.ts",
"test:coverage": "vitest run --coverage",

View File

@@ -119,7 +119,7 @@ test('create note saves file to disk with correct slug @smoke', async ({ page })
// 5. Rename note updates filename on disk
// ---------------------------------------------------------------------------
test('rename note updates filename on disk @smoke', async ({ page }) => {
test('rename note updates filename on disk', async ({ page }) => {
// Open Note B
await openNote(page, 'Note B')

View File

@@ -5,7 +5,7 @@ function isCrashError(msg: string): boolean {
return msg.includes('Maximum update depth') || msg.includes('Invalid hook call') || msg.includes('#185')
}
test('create note via Cmd+N does not crash @smoke', async ({ page }) => {
test('create note via Cmd+N does not crash', async ({ page }) => {
const errors: string[] = []
page.on('pageerror', (err) => { if (isCrashError(err.message)) errors.push(err.message) })

View File

@@ -18,7 +18,7 @@ test.describe('Command Palette smoke tests', () => {
await verifyVisible(page, 'input[placeholder="Type a command..."]')
})
test('Escape closes the command palette @smoke', async ({ page }) => {
test('Escape closes the command palette', async ({ page }) => {
await openCommandPalette(page)
await closeCommandPalette(page)
await expect(
@@ -26,7 +26,7 @@ test.describe('Command Palette smoke tests', () => {
).not.toBeVisible()
})
test('typing filters the command list @smoke', async ({ page }) => {
test('typing filters the command list', async ({ page }) => {
await openCommandPalette(page)
const found = await findCommand(page, 'reload')
expect(found).toBe(true)

View File

@@ -58,7 +58,7 @@ test.describe('Raw editor ↔ BlockNote sync', () => {
await page.waitForLoadState('networkidle')
})
test('editing in raw mode and switching to BlockNote shows updated content @smoke', async ({ page }) => {
test('editing in raw mode and switching to BlockNote shows updated content', async ({ page }) => {
await openFirstNote(page)
// Toggle to raw mode
@@ -79,7 +79,7 @@ test.describe('Raw editor ↔ BlockNote sync', () => {
await expect(page.locator('.bn-editor')).toContainText(appendedText, { timeout: 5000 })
})
test('switching BlockNote → raw → BlockNote multiple times preserves content @smoke', async ({ page }) => {
test('switching BlockNote → raw → BlockNote multiple times preserves content', async ({ page }) => {
await openFirstNote(page)
// Cycle 1: toggle to raw, edit, toggle back

View File

@@ -7,7 +7,7 @@ test.describe('Renaming a note updates wikilinks across the vault', () => {
await page.waitForLoadState('networkidle')
})
test('title field rename triggers rename flow and shows toast @smoke', async ({ page }) => {
test('title field rename triggers rename flow and shows toast', async ({ page }) => {
// 1. Click the first note in the list to open it
const noteListContainer = page.locator('[data-testid="note-list-container"]')
await noteListContainer.waitFor({ timeout: 5000 })