File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
src/frontend/apps/e2e/__tests__/app-impress Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments