chore: Use apiLogin instead of user.login in e2e tests (#12382)
This commit is contained in:
parent
f687056d60
commit
b7e2a62e26
|
@ -24,7 +24,7 @@ test.describe("2FA Tests", async () => {
|
||||||
const user = await users.create();
|
const user = await users.create();
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const userPassword = user.username!;
|
const userPassword = user.username!;
|
||||||
await user.login();
|
await user.apiLogin();
|
||||||
|
|
||||||
// expects the home page for an authorized user
|
// expects the home page for an authorized user
|
||||||
await page.goto("/settings/security/two-factor-auth");
|
await page.goto("/settings/security/two-factor-auth");
|
||||||
|
@ -94,7 +94,7 @@ test.describe("2FA Tests", async () => {
|
||||||
const user = await users.create();
|
const user = await users.create();
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const userPassword = user.username!;
|
const userPassword = user.username!;
|
||||||
await user.login();
|
await user.apiLogin();
|
||||||
|
|
||||||
// expects the home page for an authorized user
|
// expects the home page for an authorized user
|
||||||
await page.goto("/settings/security/two-factor-auth");
|
await page.goto("/settings/security/two-factor-auth");
|
||||||
|
|
|
@ -17,7 +17,7 @@ test.describe("Workflow tests", () => {
|
||||||
async ({ page, users }) => {
|
async ({ page, users }) => {
|
||||||
const user = await users.create();
|
const user = await users.create();
|
||||||
const [eventType] = user.eventTypes;
|
const [eventType] = user.eventTypes;
|
||||||
await user.login();
|
await user.apiLogin();
|
||||||
await page.goto(`/workflows`);
|
await page.goto(`/workflows`);
|
||||||
|
|
||||||
await page.click('[data-testid="create-button"]');
|
await page.click('[data-testid="create-button"]');
|
||||||
|
|
|
@ -16,7 +16,7 @@ const installApps = async (page: Page, users: Fixtures["users"]) => {
|
||||||
hasTeam: true,
|
hasTeam: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
await user.login();
|
await user.apiLogin();
|
||||||
await page.goto(`/apps/typeform`);
|
await page.goto(`/apps/typeform`);
|
||||||
await page.click('[data-testid="install-app-button"]');
|
await page.click('[data-testid="install-app-button"]');
|
||||||
(await page.waitForSelector('[data-testid="install-app-button-personal"]')).click();
|
(await page.waitForSelector('[data-testid="install-app-button-personal"]')).click();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user