Browse Source

Fix playwright tests

pull/3899/head
Timshel 3 weeks ago
parent
commit
f8ac0d0fd1
  1. 2
      playwright/tests/organization.smtp.spec.ts
  2. 2
      playwright/tests/setups/sso.ts
  3. 2
      playwright/tests/setups/user.ts
  4. 2
      playwright/tests/sso_organization.smtp.spec.ts

2
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('Name').fill(users.user2.name);
await page.getByLabel('New master password (required)', { exact: true }).fill(users.user2.password); 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 page.getByRole('button', { name: 'Create account' }).click();
await utils.checkNotification(page, 'Your new account has been created'); await utils.checkNotification(page, 'Your new account has been created');

2
playwright/tests/setups/sso.ts

@ -38,7 +38,7 @@ export async function logNewUser(
await test.step('Create Vault account', async () => { await test.step('Create Vault account', async () => {
await expect(page.getByRole('heading', { name: 'Join organisation' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Join organisation' })).toBeVisible();
await page.getByLabel('New master password (required)', { exact: true }).fill(user.password); 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 page.getByRole('button', { name: 'Create account' }).click();
}); });

2
playwright/tests/setups/user.ts

@ -18,7 +18,7 @@ export async function createAccount(test, page: Page, user: { email: string, nam
// Vault finish Creation // Vault finish Creation
await page.getByLabel('New master password (required)', { exact: true }).fill(user.password); 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 page.getByRole('button', { name: 'Create account' }).click();
await utils.checkNotification(page, 'Your new account has been created') await utils.checkNotification(page, 'Your new account has been created')

2
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 test.step('Create Vault account', async () => {
await expect(page.getByRole('heading', { name: 'Join organisation' })).toBeVisible(); 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('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 page.getByRole('button', { name: 'Create account' }).click();
}); });

Loading…
Cancel
Save