✨(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:
committed by
Anthony LC
parent
7c696fc1ec
commit
81e9fc49fe
@@ -30,7 +30,11 @@ test.describe('Doc Version', () => {
|
||||
await expect(panel).toBeVisible();
|
||||
await expect(modal.getByText('No versions')).toBeVisible();
|
||||
|
||||
const editor = page.locator('.ProseMirror');
|
||||
await modal.getByRole('button', { name: 'close' }).click();
|
||||
await editor.locator('.bn-block-outer').last().fill('/');
|
||||
await page.getByText('Heading 1').click();
|
||||
|
||||
await page.locator('.ProseMirror.bn-editor').click();
|
||||
await page.locator('.ProseMirror.bn-editor').last().fill('Hello World');
|
||||
await goToGridDoc(page, {
|
||||
@@ -64,7 +68,6 @@ test.describe('Doc Version', () => {
|
||||
|
||||
await expect(panel).toBeVisible();
|
||||
await expect(page.getByText('History', { exact: true })).toBeVisible();
|
||||
await expect(page.getByRole('status')).toBeVisible();
|
||||
await expect(page.getByRole('status')).toBeHidden();
|
||||
const items = await panel.locator('.version-item').all();
|
||||
expect(items.length).toBe(1);
|
||||
|
||||
Reference in New Issue
Block a user