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

This commit is contained in:
sean-brydon authored and GitHub committed 2023-11-16 13:05:39 +00:00
1 parent f687056d60
commit b7e2a62e26
3 files changed
+4 -4

No files matched your search

+2 -2
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");
+1 -1
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"]');