Skip to content

Commit cad7858

Browse files
committed
spectron: Add reload button test.
Signed-off-by: tarun8718 <[email protected]>
1 parent 522c850 commit cad7858

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"use strict";
2+
const test = require("tape");
3+
4+
const setup = require("../spectron_lib/common");
5+
6+
test("Reload", async (t) => {
7+
t.timeoutAfter(50e3);
8+
setup.resetTestDataDir();
9+
const app = setup.createApp();
10+
try {
11+
await setup.waitForLoad(app, t);
12+
await app.client.windowByIndex(0);
13+
await (await app.client.$("#reload-action")).click();
14+
await setup.wait(5000);
15+
await setup.endTest(app, t);
16+
} catch (error) {
17+
await setup.endTest(app, t, error || "error");
18+
}
19+
});

0 commit comments

Comments
 (0)