Skip to content

Commit 427fdcf

Browse files
committed
Fixing e2e demo
1 parent aa94bdc commit 427fdcf

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.github/workflows/snapshot_release.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ jobs:
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: Upload screenshot
45-
if: |
46-
${{ matrix.os == 'ubuntu-latest' }} &&
47-
${{ matrix.node == '15'}} &&
48-
${{ failure() }}
49-
uses: actions/upload-artifact@v2
50-
with:
51-
name: Container UI
52-
path: /home/runner/work/nut.js/nut.js/ci.png
5344

5445
deploy:
5546
needs:

index.e2e.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const calculate = async () => {
3333
await mouse.move(straightTo(centerOf(screen.find("zero.png"))));
3434
await mouse.leftClick();
3535
await mouse.leftClick();
36-
await keyboard.type(Key.Enter);
3736
};
3837

3938
const close = async () => {
@@ -60,7 +59,7 @@ describe("E2E demo", () => {
6059
await assert.isVisible("calculator.png");
6160
await keyboard.type("525");
6261
await calculate();
63-
console.log(await screen.capture("./ci.png"));
62+
await keyboard.type(Key.Enter);
6463
await assert.isVisible("result.png");
6564
await close();
6665
});

0 commit comments

Comments
 (0)