Skip to content

Commit

Permalink
(#5) Removed window E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Aug 12, 2020
1 parent 3fb6794 commit 981ddbb
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions index.e2e.spec.ts
@@ -1,5 +1,4 @@
import {
activeWindow,
assert,
Button,
centerOf,
Expand Down Expand Up @@ -88,7 +87,7 @@ describe("E2E drag & drop demo", () => {
});

describe("E2E mouse button demo", () => {
it("should run without throwing", async () => {
it("should click all mouse buttons without throwing", async () => {
jest.setTimeout(60000);
screen.config.resourceDirectory = "./e2e/assets";
for (const btn of [Button.RIGHT, Button.MIDDLE, Button.LEFT]) {
Expand All @@ -98,17 +97,3 @@ describe("E2E mouse button demo", () => {
}
});
});

describe("E2E window demo", () => {
it("should list gnome-calculator", async () => {
jest.setTimeout(30000);
screen.config.resourceDirectory = "./e2e/assets";
await run("uxterm");
await sleep(1500);
const foregroundWindow = await activeWindow();
const windowTitle = await foregroundWindow.title;
await close();

expect(windowTitle).toBe("uxterm")
});
});

0 comments on commit 981ddbb

Please sign in to comment.