mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
puppeteer_tests: Remove login test.
This commit deletes the `01-login.ts` test because it was redundant, We are already checking for log-in in all the other tests.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
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);
|
||||
}
|
||||
|
||||
common.run_test(login_tests);
|
||||
@@ -26,7 +26,7 @@ if (options.messageId === undefined) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// TODO: Refactor to share code with frontend_tests/puppeteer_tests/00-realm-creation.js
|
||||
// TODO: Refactor to share code with frontend_tests/puppeteer_tests/01-realm-creation.js
|
||||
async function run() {
|
||||
const browser = await puppeteer.launch({
|
||||
args: [
|
||||
|
||||
@@ -12,7 +12,7 @@ from zerver.views.auth import create_preregistration_user
|
||||
from zerver.views.registration import accounts_register
|
||||
|
||||
|
||||
# This is used only by the Puppeteer test in 00-realm-creation.js.
|
||||
# This is used only by the Puppeteer test in 01-realm-creation.js.
|
||||
def confirmation_key(request: HttpRequest) -> HttpResponse:
|
||||
return json_success(request.session.get("confirmation_key"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user