Skip to content

Commit 64c9676

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

File tree

1 file changed

+21
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)