Skip to content

Commit 90af0d7

Browse files
committed
fixup! ✅(e2e) add test for accessible html export from export modal
1 parent a4e9421 commit 90af0d7

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

src/frontend/apps/e2e/__tests__/app-impress/doc-header.spec.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -408,42 +408,6 @@ test.describe('Doc Header', () => {
408408
expect(clipboardContent.trim()).toBe('# Hello World');
409409
});
410410

411-
test('It no longer shows the copy as HTML button', async ({
412-
page,
413-
browserName,
414-
}) => {
415-
test.skip(
416-
browserName === 'webkit',
417-
'navigator.clipboard is not working with webkit and playwright',
418-
);
419-
420-
// create page and navigate to it
421-
await page
422-
.getByRole('button', {
423-
name: 'New doc',
424-
})
425-
.click();
426-
427-
// Add dummy content to the doc
428-
const editor = page.locator('.ProseMirror');
429-
const docFirstBlock = editor.locator('.bn-block-content').first();
430-
await docFirstBlock.click();
431-
await page.keyboard.type('# Hello World', { delay: 100 });
432-
const docFirstBlockContent = docFirstBlock.locator('h1');
433-
await expect(docFirstBlockContent).toHaveText('Hello World');
434-
435-
// Open document options menu
436-
await page.getByLabel('Open the document options').click();
437-
438-
// We should no longer see "Copy as HTML" in the menu
439-
await expect(
440-
page.getByRole('menuitem', { name: 'Copy as Markdown' }),
441-
).toBeVisible();
442-
await expect(page.getByRole('menu').getByText('Copy as HTML')).toHaveCount(
443-
0,
444-
);
445-
});
446-
447411
test('it checks the copy link button', async ({ page, browserName }) => {
448412
test.skip(
449413
browserName === 'webkit',

0 commit comments

Comments
 (0)