chore: Use apiLogin instead of user.login in e2e tests (#12382)

This commit is contained in:
sean-brydon 2023-11-16 13:05:39 +00:00 committed by GitHub
parent f687056d60
commit b7e2a62e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ test.describe("2FA Tests", async () => {
const user = await users.create();
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const userPassword = user.username!;
await user.login();
await user.apiLogin();
// expects the home page for an authorized user
await page.goto("/settings/security/two-factor-auth");
@ -94,7 +94,7 @@ test.describe("2FA Tests", async () => {
const user = await users.create();
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const userPassword = user.username!;
await user.login();
await user.apiLogin();
// expects the home page for an authorized user
await page.goto("/settings/security/two-factor-auth");

View File

@ -17,7 +17,7 @@ test.describe("Workflow tests", () => {
async ({ page, users }) => {
const user = await users.create();
const [eventType] = user.eventTypes;
await user.login();
await user.apiLogin();
await page.goto(`/workflows`);
await page.click('[data-testid="create-button"]');

View File

@ -16,7 +16,7 @@ const installApps = async (page: Page, users: Fixtures["users"]) => {
hasTeam: true,
}
);
await user.login();
await user.apiLogin();
await page.goto(`/apps/typeform`);
await page.click('[data-testid="install-app-button"]');
(await page.waitForSelector('[data-testid="install-app-button-personal"]')).click();