Something went wrong. Try again.
A local-first note taking app
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435import { test, expect } from '@playwright/test';import { launchApp, openNote, resetWorkspace, type LaunchedApp,} from './appFixture';
test.describe('app harness', () => { let app: LaunchedApp; let window: LaunchedApp['window'];
test.beforeAll(async () => { app = await launchApp(); window = app.window; }); test.afterAll(async () => { await app.close(); }); test.beforeEach(async () => { await resetWorkspace(app); });
test('launches, mounts the seeded vault, and opens a note', async () => { await expect( window.getByText('Source.md', { exact: true }).first(), ).toBeVisible(); await openNote(window, 'Target.md'); // Near the top: CM only renders its visible viewport. await expect(window.locator('.cm-content').first()).toContainText( 'intro body line 1', ); });});