File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
test/cypress/tests/inline-tools Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,12 @@ describe('Inline Tool Link', () => {
8787 } ) ;
8888
8989 cy . get ( '[data-cy=editorjs]' )
90- . find ( 'div.ce-block' )
91- . click ( )
92- . type ( '{selectall}' )
93- . wait ( 200 )
94- . type ( '{ctrl}K' ) ;
90+ . find ( '.ce-paragraph' )
91+ . selectText ( 'Text with link' ) ;
92+
93+ cy . get ( '[data-cy=editorjs]' )
94+ . find ( '[data-item-name=link]' )
95+ . click ( ) ;
9596
9697 cy . get ( '[data-cy=editorjs]' )
9798 . find ( '.ce-inline-tool-input' )
@@ -106,10 +107,11 @@ describe('Inline Tool Link', () => {
106107 cy . get ( '[data-cy=editorjs]' )
107108 . find ( 'div.ce-block' )
108109 . find ( 'a' )
109- . click ( )
110- . type ( '{selectall}' )
111- . wait ( 200 )
112- . type ( '{ctrl}B' ) ;
110+ . selectText ( 'Text with link' ) ;
111+
112+ cy . get ( '[data-cy=editorjs]' )
113+ . find ( '[data-item-name=bold]' )
114+ . click ( ) ;
113115
114116 cy . get ( '[data-cy=editorjs]' )
115117 . find ( 'div.ce-block' )
You can’t perform that action at this time.
0 commit comments