Skip to content

Commit b4620ae

Browse files
committed
(#246) Restructured e2e tests to better verify updated dependencies
1 parent 04459f7 commit b4620ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+12090
-16832
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,15 @@ jobs:
7171
run: npm ci
7272
- name: Compile
7373
run: npm run compile
74-
- name: Init e2e test subpackage
75-
run: npm --prefix e2e/tests ci
74+
- name: Init window e2e test subpackage
75+
run: npm --prefix e2e/window-test ci
7676
- name: Generate coverage report
7777
uses: GabrielBB/xvfb-action@v1
7878
with:
7979
run: npm run coverage -- --coverageDirectory=coverage/unit
8080
- name: Run Docker E2E tests
8181
if: ${{matrix.os == 'ubuntu-latest'}}
8282
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
83+
- name: Run Electron e2e test subpackage
84+
if: ${{matrix.os == 'ubuntu-latest'}}
85+
run: npm --prefix e2e/electron-test cit

.github/workflows/snapshot_release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,19 @@ jobs:
3232
run: npm i @nut-tree/libnut@next
3333
- name: Compile
3434
run: npm run compile
35-
- name: Init e2e test subpackage
36-
run: npm --prefix e2e/tests ci
35+
- name: Init window e2e test subpackage
36+
run: npm --prefix e2e/window-test ci
3737
- name: Run tests
3838
uses: GabrielBB/xvfb-action@v1
3939
with:
4040
run: npm test
4141
- name: Run Docker E2E tests
4242
if: ${{matrix.os == 'ubuntu-latest'}}
4343
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
44+
- name: Run Electron e2e test subpackage
45+
if: ${{matrix.os == 'ubuntu-latest'}}
46+
run: npm --prefix e2e/electron-test cit
47+
4448

4549
deploy:
4650
needs:

.github/workflows/tagged_release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ jobs:
2727
run: npm ci
2828
- name: Compile
2929
run: npm run compile
30-
- name: Init e2e test subpackage
31-
run: npm --prefix e2e/tests ci
30+
- name: Init window e2e test subpackage
31+
run: npm --prefix e2e/window-test ci
3232
- name: Generate coverage report
3333
uses: GabrielBB/xvfb-action@v1
3434
with:
3535
run: npm test
3636
- name: Run Docker E2E tests
3737
if: ${{matrix.os == 'ubuntu-latest'}}
3838
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
39+
- name: Run Electron e2e test subpackage
40+
if: ${{matrix.os == 'ubuntu-latest'}}
41+
run: npm --prefix e2e/electron-test cit
3942

4043
deploy:
4144
needs:

e2e/assets/calculator.png

-463 Bytes
Binary file not shown.

e2e/assets/close.png

-270 Bytes
Binary file not shown.

e2e/assets/desktop.png

-15.9 KB
Binary file not shown.

e2e/assets/equals.png

-499 Bytes
Binary file not shown.

e2e/assets/menu.png

-2.66 KB
Binary file not shown.

e2e/assets/mouse.png

-13.3 KB
Binary file not shown.

e2e/assets/moved_trash.png

-5.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)