diff --git a/frontend/src/routes/settings/account/account-form.svelte b/frontend/src/routes/settings/account/account-form.svelte index d34b6a1..3b52abd 100644 --- a/frontend/src/routes/settings/account/account-form.svelte +++ b/frontend/src/routes/settings/account/account-form.svelte @@ -38,10 +38,10 @@
- +
- +
diff --git a/frontend/src/routes/settings/admin/users/user-form.svelte b/frontend/src/routes/settings/admin/users/user-form.svelte index 36fcf42..14f67f3 100644 --- a/frontend/src/routes/settings/admin/users/user-form.svelte +++ b/frontend/src/routes/settings/admin/users/user-form.svelte @@ -56,10 +56,10 @@
- +
- +
diff --git a/frontend/tests/account-settings.spec.ts b/frontend/tests/account-settings.spec.ts index 00a36b0..96dcb1c 100644 --- a/frontend/tests/account-settings.spec.ts +++ b/frontend/tests/account-settings.spec.ts @@ -8,8 +8,8 @@ test.beforeEach(cleanupBackend); test('Update account details', async ({ page }) => { await page.goto('/settings/account'); - await page.getByLabel('Firstname').fill('Timothy'); - await page.getByLabel('Lastname').fill('Apple'); + await page.getByLabel('First name').fill('Timothy'); + await page.getByLabel('Last name').fill('Apple'); await page.getByLabel('Email').fill('timothy.apple@test.com'); await page.getByLabel('Username').fill('timothy'); await page.getByRole('button', { name: 'Save' }).click(); diff --git a/frontend/tests/user-settings.spec.ts b/frontend/tests/user-settings.spec.ts index ced3154..0047373 100644 --- a/frontend/tests/user-settings.spec.ts +++ b/frontend/tests/user-settings.spec.ts @@ -10,8 +10,8 @@ test('Create user', async ({ page }) => { await page.goto('/settings/admin/users'); await page.getByRole('button', { name: 'Add User' }).click(); - await page.getByLabel('Firstname').fill(user.firstname); - await page.getByLabel('Lastname').fill(user.lastname); + await page.getByLabel('First name').fill(user.firstname); + await page.getByLabel('Last name').fill(user.lastname); await page.getByLabel('Email').fill(user.email); await page.getByLabel('Username').fill(user.username); await page.getByRole('button', { name: 'Save' }).click(); @@ -26,8 +26,8 @@ test('Create user fails with already taken email', async ({ page }) => { await page.goto('/settings/admin/users'); await page.getByRole('button', { name: 'Add User' }).click(); - await page.getByLabel('Firstname').fill(user.firstname); - await page.getByLabel('Lastname').fill(user.lastname); + await page.getByLabel('First name').fill(user.firstname); + await page.getByLabel('Last name').fill(user.lastname); await page.getByLabel('Email').fill(users.tim.email); await page.getByLabel('Username').fill(user.username); await page.getByRole('button', { name: 'Save' }).click(); @@ -41,8 +41,8 @@ test('Create user fails with already taken username', async ({ page }) => { await page.goto('/settings/admin/users'); await page.getByRole('button', { name: 'Add User' }).click(); - await page.getByLabel('Firstname').fill(user.firstname); - await page.getByLabel('Lastname').fill(user.lastname); + await page.getByLabel('First name').fill(user.firstname); + await page.getByLabel('Last name').fill(user.lastname); await page.getByLabel('Email').fill(user.email); await page.getByLabel('Username').fill(users.tim.username); await page.getByRole('button', { name: 'Save' }).click(); @@ -91,8 +91,8 @@ test('Update user', async ({ page }) => { .click(); await page.getByRole('menuitem', { name: 'Edit' }).click(); - await page.getByLabel('Firstname').fill('Crack'); - await page.getByLabel('Lastname').fill('Apple'); + await page.getByLabel('First name').fill('Crack'); + await page.getByLabel('Last name').fill('Apple'); await page.getByLabel('Email').fill('crack.apple@test.com'); await page.getByLabel('Username').fill('crack'); await page.getByRole('button', { name: 'Save' }).click();