( page: Page, name: string, email: string, password: string, )
| 1 | import { expect, type Page } from "@playwright/test" |
| 2 | |
| 3 | export async function signUpNewUser( |
| 4 | page: Page, |
| 5 | name: string, |
| 6 | email: string, |
| 7 | password: string, |
| 8 | ) { |
| 9 | await page.goto("/signup") |
| 10 | |
| 11 | await page.getByTestId("full-name-input").fill(name) |
| 12 | await page.getByTestId("email-input").fill(email) |
| 13 | await page.getByTestId("password-input").fill(password) |
| 14 | await page.getByTestId("confirm-password-input").fill(password) |
| 15 | await page.getByRole("button", { name: "Sign Up" }).click() |
| 16 | await page.goto("/login") |
| 17 | } |
| 18 | |
| 19 | export async function logInUser(page: Page, email: string, password: string) { |
| 20 | await page.goto("/login") |
no outgoing calls
no test coverage detected