mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-29 15:03:57 +00:00
Fix playwright tests
This commit is contained in:
parent
ebbb351be9
commit
7a78423ec4
2 changed files with 8 additions and 6 deletions
|
@ -60,11 +60,11 @@ test('Invite users', async ({ page }) => {
|
|||
});
|
||||
});
|
||||
|
||||
test.skip('Create invited account', async ({ page }) => {
|
||||
test('Create invited account', async ({ page }) => {
|
||||
await createAccount(test, page, users.user2);
|
||||
});
|
||||
|
||||
test.skip('Confirm invited user', async ({ page }) => {
|
||||
test('Confirm invited user', async ({ page }) => {
|
||||
await logUser(test, page, users.user1);
|
||||
await page.getByLabel('Switch products').click();
|
||||
await page.getByRole('link', { name: ' Admin Console' }).click();
|
||||
|
@ -78,7 +78,7 @@ test.skip('Confirm invited user', async ({ page }) => {
|
|||
});
|
||||
});
|
||||
|
||||
test.skip('Organization is visible', async ({ context, page }) => {
|
||||
test('Organization is visible', async ({ context, page }) => {
|
||||
await logUser(test, page, users.user2);
|
||||
await page.getByLabel('vault: Test').click();
|
||||
await expect(page.getByLabel('Filter: Default collection')).toBeVisible();
|
||||
|
|
|
@ -46,6 +46,10 @@ test('Non SSO login impossible', async ({ page, browser }, testInfo: TestInfo) =
|
|||
|
||||
// Landing page
|
||||
await page.goto('/');
|
||||
|
||||
// Check that SSO login is available
|
||||
await expect(page.getByRole('button', { name: /Use single sign-on/ })).toHaveCount(1);
|
||||
|
||||
await page.getByLabel(/Email address/).fill(users.user1.email);
|
||||
await page.getByRole('button', { name: 'Continue' }).click();
|
||||
|
||||
|
@ -66,9 +70,7 @@ test('No SSO login', async ({ page }, testInfo: TestInfo) => {
|
|||
// Landing page
|
||||
await page.goto('/');
|
||||
await page.getByLabel(/Email address/).fill(users.user1.email);
|
||||
await page.getByRole('button', { name: 'Continue' }).click();
|
||||
|
||||
// No SSO button (rely on a correct selector checked in previous test)
|
||||
await page.getByLabel('Master password');
|
||||
await expect(page.getByRole('link', { name: /Enterprise single sign-on/ })).toHaveCount(0);
|
||||
await expect(page.getByRole('button', { name: /Use single sign-on/ })).toHaveCount(0);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue