Skip to content

Commit

Permalink
[MS] Fixed e2e test for document viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-7 committed Nov 18, 2024
1 parent d08939b commit b63685a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions client/tests/e2e/specs/documents_list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,8 @@ for (const gridMode of [false, true]) {
} else {
await documents.locator('.folder-container').getByRole('listitem').nth(2).dblclick();
}
const modal = documents.locator('.information-modal');
await expect(modal).toBeVisible();
await expect(modal.locator('.container-textinfo')).toHaveText('This feature is not yet available in web mode.');
await modal.locator('#next-button').click();
await expect(modal).toBeHidden();

await expect(documents).toHavePageTitle('File viewer');
});

msTest(`Navigation back and forth in ${gridMode ? 'grid' : 'list'} mode`, async ({ documents }) => {
Expand Down

0 comments on commit b63685a

Please sign in to comment.