mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
14 lines
457 B
TypeScript
14 lines
457 B
TypeScript
|
|
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();
|
||
|
|
});
|