Skip to content

Commit 3d19f2a

Browse files
nmetulevCopilot
andauthored
Adding electron e2e test (#246)
Fixes #241 --------- Co-authored-by: Nikola Metulev <711864+nmetulev@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 71fa4e2 commit 3d19f2a

File tree

9 files changed

+529
-6
lines changed

9 files changed

+529
-6
lines changed

.github/workflows/build-package.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,27 @@ jobs:
7777
with:
7878
name: msix-packages
7979
path: artifacts/msix-packages/*.msix
80-
if-no-files-found: error
80+
if-no-files-found: error
81+
82+
# E2E test for Electron workflow - runs after build completes
83+
e2e-test:
84+
runs-on: windows-latest
85+
needs: build-and-package
86+
steps:
87+
- name: Checkout
88+
uses: actions/checkout@v5
89+
90+
- name: Setup Node.js
91+
uses: actions/setup-node@v5
92+
with:
93+
node-version: '24'
94+
95+
- name: Download npm package artifact
96+
uses: actions/download-artifact@v4
97+
with:
98+
name: npm-package
99+
path: artifacts/npm
100+
101+
- name: Run E2E Electron test
102+
run: |
103+
.\scripts\test-e2e-electron.ps1 -ArtifactsPath "artifacts/npm" -Verbose

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Test working directory
2+
test-wd/
3+
14
# Logs
25
logs
36
*.log

docs/usage.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,14 @@ To undo the Electron debug identity, use `winapp node clear-electron-debug-ident
450450
npx winapp node add-electron-debug-identity [options]
451451
```
452452

453+
**Options:**
454+
455+
| Option | Description |
456+
|--------|-------------|
457+
| `--manifest <path>` | Path to custom appxmanifest.xml (default: appxmanifest.xml in current directory) |
458+
| `--no-install` | Do not install or modify dependencies; only configure the Electron debug identity |
459+
| `--verbose` | Enable verbose output |
460+
453461
**What it does:**
454462

455463
- Registers debug identity for electron.exe process
@@ -461,6 +469,9 @@ npx winapp node add-electron-debug-identity [options]
461469
```bash
462470
# Add identity to Electron development process
463471
npx winapp node add-electron-debug-identity
472+
473+
# Use a custom manifest file
474+
npx winapp node add-electron-debug-identity --manifest ./custom/appxmanifest.xml
464475
```
465476

466477
---

0 commit comments

Comments
 (0)