✨ Add User Settings e2e tests (#1271)
This commit is contained in:
@@ -31,8 +31,8 @@ export async function logInUser(page: Page, email: string, password: string) {
|
||||
).toBeVisible()
|
||||
}
|
||||
|
||||
export async function logOutUser(page: Page, name: string) {
|
||||
await page.getByRole("button", { name: name }).click()
|
||||
export async function logOutUser(page: Page) {
|
||||
await page.getByTestId("user-menu").click()
|
||||
await page.getByRole("menuitem", { name: "Log out" }).click()
|
||||
await page.goto("/login")
|
||||
}
|
||||
|
Reference in New Issue
Block a user