mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
Add a new Electron smoke test suite using Playwright to verify the packaged application starts, renders the main window, and exposes expected window properties. The tests launch the built Electron main bundle, locate the primary (non-DevTools) window, wait for DOM load, and assert the title contains "IPTVnator". They also check window visibility and bounds, validate rendered body content, and capture screenshots to dist/test-results/electron-backend-e2e for debugging. Include helpers to resolve project paths, ensure the screenshot directory exists, and robustly find the main application window. Set NODE_ENV and ELECTRON_IS_DEV to ensure the app loads built artifacts.
13 lines
317 B
JSON
13 lines
317 B
JSON
{
|
|
"name": "electron-backend-e2e",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"sourceRoot": "apps/electron-backend-e2e/src",
|
|
"implicitDependencies": ["electron-backend"],
|
|
"targets": {
|
|
"e2e": {
|
|
"dependsOn": ["electron-backend:build"]
|
|
}
|
|
}
|
|
}
|