Skip to content

Commit bc1108e

Browse files
committed
better comments
1 parent d69b623 commit bc1108e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/e2e/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,21 @@ type LoginOptions = {
6969

7070
export async function login(page: Page, options: LoginOptions = users.admin) {
7171
const ctx = page.context();
72-
// biome-ignore lint/suspicious/noExplicitAny: shenanigans to make life easier
72+
// biome-ignore lint/suspicious/noExplicitAny: reset the current user
7373
(ctx as any)[Symbol.for("currentUser")] = undefined;
7474
await ctx.clearCookies();
7575
await page.goto("/login");
7676
await page.getByLabel("Email").fill(options.email);
7777
await page.getByLabel("Password").fill(options.password);
7878
await page.getByRole("button", { name: "Sign In" }).click();
7979
await expectUrl(page).toHavePathName("/workspaces");
80-
// biome-ignore lint/suspicious/noExplicitAny: shenanigans to make life easier
80+
// biome-ignore lint/suspicious/noExplicitAny: update once logged in
8181
(ctx as any)[Symbol.for("currentUser")] = options;
8282
}
8383

8484
export function currentUser(page: Page): LoginOptions {
8585
const ctx = page.context();
86-
// biome-ignore lint/suspicious/noExplicitAny: shenanigans to make life easier
86+
// biome-ignore lint/suspicious/noExplicitAny: get the current user
8787
const user = (ctx as any)[Symbol.for("currentUser")];
8888

8989
if (!user) {

0 commit comments

Comments
 (0)