Skip to content

Commit 63b4aaf

Browse files
committed
Make it easier to know when redirect happens
1 parent 055d787 commit 63b4aaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/e2e/tests/users/createUserWithPassword.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ test("create user with password", async ({ page, baseURL }) => {
1818
loginType: "password",
1919
password: "s3cure&password!",
2020
};
21+
2122
await page.getByLabel("Username").fill(userValues.username);
2223
await page.getByLabel("Email").fill(userValues.email);
2324
await page.getByLabel("Login Type").click();
@@ -27,7 +28,8 @@ test("create user with password", async ({ page, baseURL }) => {
2728
const passwordField = page.locator("input[name=password]");
2829
await passwordField.fill(userValues.password);
2930
await page.getByRole("button", { name: "Create user" }).click();
30-
3131
await expect(page.getByText("Successfully created user.")).toBeVisible();
32+
33+
await expect(page).toHaveTitle("Users - Coder");
3234
await expect(page.locator("tr", { hasText: userValues.email })).toBeVisible();
3335
});

0 commit comments

Comments
 (0)