Files
zulip-desktop/tests/test-new-organization.js
Anders Kaseorg f4479dfda4 tests: Migrate E2E tests to Playwright.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-11-19 15:50:16 -08:00

27 lines
707 B
JavaScript

"use strict";
const {chan, put, take} = require("medium");
const test = require("tape");
const setup = require("./setup.js");
// Create new org link should open in the default browser [WIP]
test("new-org-link", async (t) => {
t.timeoutAfter(50e3);
setup.resetTestDataDir();
const app = await setup.createApp();
try {
const windows = chan();
for (const win of app.windows()) put(windows, win);
app.on("window", (win) => put(windows, win));
const mainWindow = await take(windows);
t.equal(await mainWindow.title(), "Zulip");
const mainWebview = await take(windows);
await mainWebview.click("#open-create-org-link");
} finally {
await setup.endTest(app);
}
});