Some checks failed
Auto-update PR branches / Update open PR branches (push) Has been cancelled
CI / Frontend Static Quality Checks (push) Has been cancelled
CI / Frontend Tests & Coverage (push) Has been cancelled
CI / Rust Tests & Quality Checks (push) Has been cancelled
CI / Linux build verification (push) Has been cancelled
Release (Alpha) / Compute alpha version (push) Has been cancelled
Release (Alpha) / Build release artifacts (push) Has been cancelled
Release (Alpha) / GitHub Release (alpha) (push) Has been cancelled
Release (Alpha) / Update docs and release pages (push) Has been cancelled
Deploy docs / Build VitePress site (push) Has been cancelled
Deploy docs / Deploy to GitHub Pages (push) Has been cancelled
18 lines
706 B
TypeScript
18 lines
706 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
import { executeCommand, openCommandPalette } from './helpers'
|
|
|
|
test('keyboard-created notes omit default status metadata @smoke', async ({ page }) => {
|
|
await page.goto('/')
|
|
await page.waitForSelector('[data-testid="sidebar-top-nav"]', { timeout: 10_000 })
|
|
|
|
await page.keyboard.press('Meta+n')
|
|
await expect(page.getByTestId('breadcrumb-filename-trigger')).toContainText(/untitled-note-\d+/i, { timeout: 5_000 })
|
|
|
|
await openCommandPalette(page)
|
|
await executeCommand(page, 'Toggle Raw')
|
|
|
|
const rawEditor = page.locator('.cm-content')
|
|
await expect(rawEditor).toContainText('type: Note')
|
|
await expect(rawEditor).not.toContainText('status:')
|
|
})
|