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:
Riken Shah
2021-04-01 01:10:49 +05:30
committed by Tim Abbott
parent 0023d561dd
commit 08212ef74a
4 changed files with 2 additions and 12 deletions

View File

@@ -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);

View File

@@ -26,7 +26,7 @@ if (options.messageId === undefined) {
process.exit(1); 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() { async function run() {
const browser = await puppeteer.launch({ const browser = await puppeteer.launch({
args: [ args: [

View File

@@ -12,7 +12,7 @@ from zerver.views.auth import create_preregistration_user
from zerver.views.registration import accounts_register 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: def confirmation_key(request: HttpRequest) -> HttpResponse:
return json_success(request.session.get("confirmation_key")) return json_success(request.session.get("confirmation_key"))