e2e(desktop): create empty project

This commit is contained in:
Elian Doran
2025-06-21 14:23:47 +03:00
parent 520b862551
commit a7091779b7
8 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
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();
});