test(e2e): scope settings Documents tab selector to modal
This commit is contained in:
parent
5a684214c8
commit
2f1eafeb79
1 changed files with 3 additions and 1 deletions
|
|
@ -431,7 +431,9 @@ export async function deleteDocumentByName(page: Page, fileName: string) {
|
|||
// Open Settings modal and navigate to Documents section
|
||||
export async function openSettingsDocumentsTab(page: Page) {
|
||||
await page.getByRole('button', { name: 'Settings' }).click();
|
||||
await page.getByRole('button', { name: 'Documents' }).click();
|
||||
const settingsDialog = page.locator('[data-testid="settings-modal"]');
|
||||
await expect(settingsDialog).toBeVisible({ timeout: 10000 });
|
||||
await settingsDialog.getByRole('button', { name: /^Documents$/ }).click();
|
||||
}
|
||||
|
||||
// Delete all local documents through Settings and close dialogs
|
||||
|
|
|
|||
Loading…
Reference in a new issue