Make prettier happy with personal-info.spec.ts

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
This commit is contained in:
Thomas Darimont 2024-10-16 20:52:35 +02:00 committed by Pedro Igor
parent 5b8f4d3922
commit ac561f2d8b

View file

@ -16,7 +16,10 @@ const realm = "user-profile";
test.describe("Personal info page", () => {
const user = "user-" + randomUUID();
test.beforeAll(async () => await inRealm(realm, () => createRandomUserWithPassword(user, "pwd")));
test.beforeAll(
async () =>
await inRealm(realm, () => createRandomUserWithPassword(user, "pwd")),
);
test.afterAll(async () => await inRealm(realm, () => deleteUser(user)));
test("sets basic information", async ({ page }) => {
@ -116,14 +119,11 @@ test.describe("Personal info with userprofile enabled", () => {
});
test.describe("Realm localization", () => {
test.beforeAll(() => enableLocalization());
test("change locale", async ({ page }) => {
let user = await inRealm(realm, () => createRandomUserWithPassword(
"user-" + randomUUID(),
"pwd",
));
const user = await inRealm(realm, () =>
createRandomUserWithPassword("user-" + randomUUID(), "pwd"),
);
await login(page, user, "pwd", realm);
await page.locator("#locale").click();