Files
Trilium/apps/desktop-e2e/src/example.spec.ts

14 lines
457 B
TypeScript
Raw Normal View History

2025-06-21 14:23:47 +03:00
import { test, expect, _electron as electron } from '@playwright/test';
import { join } from 'path';
test('Electron app should display correct title', async () => {
// Launch Electron app
const distPath = join(__dirname, '../../desktop/dist/main.cjs');
const app = await electron.launch({ args: [ distPath ] });
// Get the main window
const window = await app.firstWindow();
await expect(window).toHaveTitle("Setup");
await app.close();
});