mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-10-02 06:20:33 +00:00
Fix playwright test
This commit is contained in:
parent
8d91f351a3
commit
bac049f2dd
1 changed files with 4 additions and 2 deletions
|
@ -44,9 +44,11 @@ export async function invite(test, page: Page, name: string, email: string) {
|
|||
await page.getByRole('button', { name: 'Invite member' }).click();
|
||||
await page.getByLabel('Email (required)').fill(email);
|
||||
await page.getByRole('tab', { name: 'Collections' }).click();
|
||||
await page.getByLabel('Permission').selectOption('edit');
|
||||
await page.getByRole('combobox', { name: 'Permission' }).click();
|
||||
await page.getByText('Edit items', { exact: true }).click();
|
||||
await page.getByLabel('Select collections').click();
|
||||
await page.getByLabel('Options list').getByText('Default collection').click();
|
||||
await page.getByText('Default collection').click();
|
||||
await page.getByRole('cell', { name: 'Collection', exact: true }).click();
|
||||
await page.getByRole('button', { name: 'Save' }).click();
|
||||
await utils.checkNotification(page, 'User(s) invited');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue