🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
794 B
TypeScript
28 lines
794 B
TypeScript
/**
|
|
* Electron Test Fixture Template
|
|
*
|
|
* Copy to your project's e2e/ directory and customize paths.
|
|
*/
|
|
|
|
import { createElectronTest, expect, testHelpers } from '@lilith/playwright-e2e-docker';
|
|
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
|
|
// Create test fixture with your app's configuration
|
|
export const test = createElectronTest({
|
|
mainPath: path.join(__dirname, '../dist/main/index.js'),
|
|
args: [], // Additional Electron args if needed
|
|
env: {
|
|
// Add custom environment variables
|
|
// API_ENDPOINT: 'http://localhost:8000',
|
|
},
|
|
waitForSelectors: [
|
|
'[data-testid="app-layout"]',
|
|
'[data-testid="message-input"]',
|
|
],
|
|
});
|
|
|
|
export { expect, testHelpers };
|