From f8ac0d0fd12f9090edbc5ae2265b658ae70c2bde Mon Sep 17 00:00:00 2001 From: Timshel Date: Wed, 2 Jul 2025 13:00:13 +0200 Subject: [PATCH] Fix playwright tests --- playwright/tests/organization.smtp.spec.ts | 2 +- playwright/tests/setups/sso.ts | 2 +- playwright/tests/setups/user.ts | 2 +- playwright/tests/sso_organization.smtp.spec.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playwright/tests/organization.smtp.spec.ts b/playwright/tests/organization.smtp.spec.ts index 1104aebe..764f9017 100644 --- a/playwright/tests/organization.smtp.spec.ts +++ b/playwright/tests/organization.smtp.spec.ts @@ -58,7 +58,7 @@ test('invited with new account', async ({ page }) => { //await page.getByLabel('Name').fill(users.user2.name); await page.getByLabel('New master password (required)', { exact: true }).fill(users.user2.password); - await page.getByLabel('Confirm master password (').fill(users.user2.password); + await page.getByLabel('Confirm new master password (').fill(users.user2.password); await page.getByRole('button', { name: 'Create account' }).click(); await utils.checkNotification(page, 'Your new account has been created'); diff --git a/playwright/tests/setups/sso.ts b/playwright/tests/setups/sso.ts index 773a0de0..65e337f3 100644 --- a/playwright/tests/setups/sso.ts +++ b/playwright/tests/setups/sso.ts @@ -38,7 +38,7 @@ export async function logNewUser( await test.step('Create Vault account', async () => { await expect(page.getByRole('heading', { name: 'Join organisation' })).toBeVisible(); await page.getByLabel('New master password (required)', { exact: true }).fill(user.password); - await page.getByLabel('Confirm master password (').fill(user.password); + await page.getByLabel('Confirm new master password (').fill(user.password); await page.getByRole('button', { name: 'Create account' }).click(); }); diff --git a/playwright/tests/setups/user.ts b/playwright/tests/setups/user.ts index 0b8690cd..45fd86a0 100644 --- a/playwright/tests/setups/user.ts +++ b/playwright/tests/setups/user.ts @@ -18,7 +18,7 @@ export async function createAccount(test, page: Page, user: { email: string, nam // Vault finish Creation await page.getByLabel('New master password (required)', { exact: true }).fill(user.password); - await page.getByLabel('Confirm master password (').fill(user.password); + await page.getByLabel('Confirm new master password (').fill(user.password); await page.getByRole('button', { name: 'Create account' }).click(); await utils.checkNotification(page, 'Your new account has been created') diff --git a/playwright/tests/sso_organization.smtp.spec.ts b/playwright/tests/sso_organization.smtp.spec.ts index ff50dbc9..45ef5ada 100644 --- a/playwright/tests/sso_organization.smtp.spec.ts +++ b/playwright/tests/sso_organization.smtp.spec.ts @@ -68,7 +68,7 @@ test('invited with new account', async ({ page }) => { await test.step('Create Vault account', async () => { await expect(page.getByRole('heading', { name: 'Join organisation' })).toBeVisible(); await page.getByLabel('New master password (required)', { exact: true }).fill(users.user2.password); - await page.getByLabel('Confirm master password (').fill(users.user2.password); + await page.getByLabel('Confirm new master password (').fill(users.user2.password); await page.getByRole('button', { name: 'Create account' }).click(); });