diff --git a/playwright.config.ts b/playwright.config.ts new file mode 100644 index 0000000..77180f8 --- /dev/null +++ b/playwright.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from '@playwright/test'; +export default defineConfig({ + testDir: './tests/e2e', + timeout: 60_000, + retries: 0, + workers: 1, + reporter: 'list' +}); diff --git a/tests/e2e/smoke.spec.ts b/tests/e2e/smoke.spec.ts new file mode 100644 index 0000000..f0811e4 --- /dev/null +++ b/tests/e2e/smoke.spec.ts @@ -0,0 +1,14 @@ +import { test, expect, _electron as electron } from '@playwright/test'; +import { resolve } from 'node:path'; + +test('inbox shell shows v0.2 empty state', async () => { + const app = await electron.launch({ + args: [resolve('out/main/index.js')], + env: { ...process.env, INKLING_DEBUG: '1' } + }); + const inbox = await app.firstWindow(); + await inbox.waitForLoadState('domcontentloaded'); + await expect(inbox.getByText('Inkling')).toBeVisible(); + await expect(inbox.getByText('첫 기억을 구출해보세요.')).toBeVisible(); + await app.close(); +});