mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
puppeteer_tests: Port to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
cdff4cfe53
commit
279c4b0e24
11
frontend_tests/puppeteer_tests/01-login.ts
Normal file
11
frontend_tests/puppeteer_tests/01-login.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type {Page} from "puppeteer";
|
||||
|
||||
import {test_credentials} from "../../var/puppeteer/test_credentials";
|
||||
import common from "../puppeteer_lib/common";
|
||||
|
||||
async function login_tests(page: Page): Promise<void> {
|
||||
await common.log_in(page, test_credentials.default_user);
|
||||
await common.log_out(page);
|
||||
}
|
||||
|
||||
common.run_test(login_tests);
|
||||
Reference in New Issue
Block a user