MCPcopy
hub / github.com/fastapi/full-stack-fastapi-template / signUpNewUser

Function signUpNewUser

frontend/tests/utils/user.ts:3–17  ·  view source on GitHub ↗
(
  page: Page,
  name: string,
  email: string,
  password: string,
)

Source from the content-addressed store, hash-verified

1import { expect, type Page } from "@playwright/test"
2
3export 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
19export async function logInUser(page: Page, email: string, password: string) {
20 await page.goto("/login")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected