Add User Settings e2e tests (#1271)

This commit is contained in:
Alejandra
2024-07-30 12:48:36 -05:00
committed by GitHub
parent c8b1b3a9b1
commit 8efef66c5c
3 changed files with 291 additions and 3 deletions

View File

@@ -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")
}