Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfd49d0

Browse files
committed
frontend tests
1 parent b115c11 commit dfd49d0

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

site/e2e/setup/addUsersAndLicense.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ test("setup deployment", async ({ page }) => {
1616
}
1717

1818
// Setup first user
19-
await page.getByLabel(Language.usernameLabel).fill(users.admin.username);
2019
await page.getByLabel(Language.emailLabel).fill(users.admin.email);
2120
await page.getByLabel(Language.passwordLabel).fill(users.admin.password);
2221
await page.getByTestId("create").click();

site/src/pages/SetupPage/SetupPage.test.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ import { SetupPage } from "./SetupPage";
1313
import { Language as PageViewLanguage } from "./SetupPageView";
1414

1515
const fillForm = async ({
16-
username = "someuser",
1716
email = "[email protected]",
1817
password = "password",
1918
}: {
2019
username?: string;
2120
email?: string;
2221
password?: string;
2322
} = {}) => {
24-
const usernameField = screen.getByLabelText(PageViewLanguage.usernameLabel);
2523
const emailField = screen.getByLabelText(PageViewLanguage.emailLabel);
2624
const passwordField = screen.getByLabelText(PageViewLanguage.passwordLabel);
27-
await userEvent.type(usernameField, username);
2825
await userEvent.type(emailField, email);
2926
await userEvent.type(passwordField, password);
3027
const submitButton = screen.getByRole("button", {

0 commit comments

Comments
 (0)