Skip to content

Commit

Permalink
Adding tests
Browse files Browse the repository at this point in the history
Signed-off-by: John Gomersall <[email protected]>
  • Loading branch information
john-gom committed Apr 7, 2024
1 parent 8b09fb7 commit 4c6a488
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/apps/account-ui/test/personal-info/personal-info.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ test.describe("Personal info with userprofile enabled", async () => {
await expect(page.locator("#select")).toBeVisible();
await expect(page.getByTestId("help-label-select")).toBeVisible();
expect(page.getByText("Alternative email")).toBeDefined();
page.locator("#select").click();
expect(await page.waitForSelector("text=Three")).toBeDefined();
});

test("save user profile", async ({ page }) => {
Expand Down
7 changes: 6 additions & 1 deletion js/apps/account-ui/test/personal-info/user-profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@
},
"annotations": {
"inputType": "select",
"inputHelperTextBefore": "This is helping a lot"
"inputHelperTextBefore": "This is helping a lot",
"inputOptionLabels": {
"one": "One",
"two": "Two",
"three": "Three"
}
},
"validations": {
"options": {
Expand Down

0 comments on commit 4c6a488

Please sign in to comment.