chore: Use apiLogin instead of user.login in e2e tests (#12382)
This commit is contained in:
1 parent
f687056d60
commit
b7e2a62e26
3 files changed
+4
-4
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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"]');
|
||||
|
||||
Reference in new issue
Block a user