✨(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
@@ -31,11 +31,7 @@ test.describe('Doc Table Content', () => {
|
||||
await page.locator('.bn-block-outer').first().click();
|
||||
await editor.click();
|
||||
await page.locator('.bn-block-outer').last().click();
|
||||
|
||||
// Create space to fill the viewport
|
||||
for (let i = 0; i < 2; i++) {
|
||||
await page.keyboard.press('Enter');
|
||||
}
|
||||
await page.keyboard.press('Enter');
|
||||
|
||||
await editor.locator('.bn-block-outer').last().fill('/');
|
||||
await page.getByText('Heading 2').click();
|
||||
@@ -44,9 +40,7 @@ test.describe('Doc Table Content', () => {
|
||||
await page.locator('.bn-block-outer').last().click();
|
||||
|
||||
// Create space to fill the viewport
|
||||
for (let i = 0; i < 2; i++) {
|
||||
await page.keyboard.press('Enter');
|
||||
}
|
||||
await page.keyboard.press('Enter');
|
||||
|
||||
await editor.locator('.bn-block-outer').last().fill('/');
|
||||
await page.getByText('Heading 3').click();
|
||||
@@ -55,7 +49,7 @@ test.describe('Doc Table Content', () => {
|
||||
expect(true).toBe(true);
|
||||
|
||||
const summaryContainer = page.locator('#summaryContainer');
|
||||
await summaryContainer.hover();
|
||||
await summaryContainer.click();
|
||||
|
||||
const level1 = summaryContainer.getByText('Level 1');
|
||||
const level2 = summaryContainer.getByText('Level 2');
|
||||
|
||||
Reference in New Issue
Block a user