(frontend) enhance document interaction tests

- Updated test cases to improve accessibility by replacing 'more_vert'
with 'more_horiz' for action buttons across various components.
- Refactored document deletion confirmation messages to use consistent
heading roles for better visibility.
- Simplified keyboard interactions in document table content tests for
improved clarity.
- Adjusted visibility checks for the share button to utilize more
descriptive labels.
- Cleaned up test code for maintainability and consistency.
This commit is contained in:
Nathan Panchout
2024-12-23 10:32:42 +01:00
committed by Anthony LC
parent 7c696fc1ec
commit 81e9fc49fe
7 changed files with 30 additions and 25 deletions

View File

@@ -172,7 +172,7 @@ test.describe('Doc Visibility: Restricted', () => {
await page.goto(urlDoc);
await verifyDocName(page, docTitle);
await expect(page.getByRole('button', { name: 'Share' })).toBeVisible();
await expect(page.getByLabel('Share button')).toBeVisible();
});
});