Parcourir la source

Fixed failing tests on Safari.

Szymon Kupś il y a 8 ans
Parent
commit
e88f07dd9b
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      packages/ckeditor5-link/tests/link.js

+ 1 - 3
packages/ckeditor5-link/tests/link.js

@@ -33,8 +33,6 @@ describe( 'Link', () => {
 				plugins: [ Link, Paragraph ]
 			} )
 			.then( newEditor => {
-				newEditor.editing.view.attachDomRoot( editorElement );
-
 				editor = newEditor;
 
 				linkFeature = editor.plugins.get( Link );
@@ -114,7 +112,7 @@ describe( 'Link', () => {
 			'that link',
 		() => {
 			setModelData( editor.document, '<paragraph><$text linkHref="url">f[]oo</$text></paragraph>' );
-			const linkElement = editorElement.querySelector( 'a' );
+			const linkElement = editor.editing.view.getDomRoot().querySelector( 'a' );
 
 			linkFeature._showPanel();