@@ -36,30 +36,30 @@ describe('test link marks', function () {
3636 }
3737
3838 it ( 'shows a link preview in the bubble after clicking link' , ( ) => {
39- const link = 'https://nextcloud.com /'
39+ const link = 'https://example.org /'
4040 cy . insertLine ( link )
4141 clickLink ( link )
4242
4343 cy . get ( '.link-view-bubble .widget-default' , { timeout : 10000 } )
4444 . find ( '.widget-default--name' )
45- . contains ( 'Nextcloud ' )
45+ . contains ( 'Example Domain ' )
4646 . click ( )
4747 } )
4848
4949 it ( 'shows a link preview in the bubble after browsing to link' , ( ) => {
50- const link = 'https://nextcloud.com /'
50+ const link = 'https://example.org /'
5151 cy . insertLine ( link )
5252 cy . getContent ( ) . find ( `a[href*="${ link } "]` )
5353
5454 cy . getContent ( ) . type ( '{upArrow}' )
5555
5656 cy . get ( '.link-view-bubble .widget-default' , { timeout : 10000 } )
5757 . find ( '.widget-default--name' )
58- . contains ( 'Nextcloud ' )
58+ . contains ( 'Example Domain ' )
5959 } )
6060
6161 it ( 'open button opens a new tab' , ( ) => {
62- const link = 'https://nextcloud.com /'
62+ const link = 'https://example.org /'
6363 cy . insertLine ( link )
6464 clickLink ( link )
6565
@@ -69,13 +69,13 @@ describe('test link marks', function () {
6969 } )
7070
7171 it ( 'closes the link bubble when clicking elsewhere' , ( ) => {
72- const link = 'https://nextcloud.com /'
72+ const link = 'https://example.org /'
7373 cy . insertLine ( link )
7474 clickLink ( link )
7575
7676 cy . get ( '.link-view-bubble .widget-default' , { timeout : 10000 } )
7777 . find ( '.widget-default--name' )
78- . contains ( 'Nextcloud ' )
78+ . contains ( 'Example Domain ' )
7979
8080 cy . get ( '[role="dialog"] h2.modal-header__name' )
8181 . contains ( fileName )
@@ -85,22 +85,20 @@ describe('test link marks', function () {
8585 } )
8686
8787 it ( 'allows to edit a link in the bubble' , ( ) => {
88- cy . insertLine ( 'https://example.org ' )
89- clickLink ( 'https://example.org ' )
88+ cy . insertLine ( 'https://example.com ' )
89+ clickLink ( 'https://example.com ' )
9090
9191 cy . get ( '.link-view-bubble button[title="Edit link"]' ) . click ( )
9292
93- cy . get ( '.link-view-bubble input' ) . type (
94- '{selectAll}https://nextcloud.com' ,
95- )
93+ cy . get ( '.link-view-bubble input' ) . type ( '{selectAll}https://example.org' )
9694
9795 cy . get ( '.link-view-bubble button[title="Save changes"]' ) . click ( )
9896
99- cy . getContent ( ) . find ( 'a[href*="https://nextcloud.com "]' )
97+ cy . getContent ( ) . find ( 'a[href*="https://example.org "]' )
10098 } )
10199
102100 it ( 'allows to remove a link in the bubble' , ( ) => {
103- const link = 'https://nextcloud.com '
101+ const link = 'https://example.org '
104102 cy . insertLine ( link )
105103 clickLink ( link )
106104
@@ -111,7 +109,7 @@ describe('test link marks', function () {
111109 } )
112110
113111 it ( 'Ctrl-click on a link opens a new tab' , ( ) => {
114- const link = 'https://nextcloud.com /'
112+ const link = 'https://example.org /'
115113 cy . insertLine ( link )
116114
117115 clickLink ( link , { ctrlKey : true } )
@@ -122,12 +120,12 @@ describe('test link marks', function () {
122120 } )
123121
124122 it ( 'Handles typed in markdown links with text' , ( ) => {
125- const link = 'https://nextcloud.com /'
123+ const link = 'https://example.org /'
126124 cy . insertLine ( `[text](${ link } )` )
127125 clickLink ( link )
128126 cy . get ( '.link-view-bubble .widget-default' , { timeout : 10000 } )
129127 . find ( '.widget-default--name' )
130- . contains ( 'Nextcloud ' )
128+ . contains ( 'Example Domain ' )
131129 cy . get ( '.link-view-bubble a' ) . should ( 'have.attr' , 'href' , link )
132130 } )
133131
@@ -163,9 +161,9 @@ describe('test link marks', function () {
163161 } )
164162
165163 it ( 'with protocol but without space' , ( ) => {
166- cy . getContent ( ) . type ( 'https://nextcloud.com ' )
164+ cy . getContent ( ) . type ( 'https://example.org ' )
167165
168- cy . getContent ( ) . find ( 'a[href*="nextcloud.com "]' ) . should ( 'not.exist' )
166+ cy . getContent ( ) . find ( 'a[href*="example.org "]' ) . should ( 'not.exist' )
169167 } )
170168 } )
171169
@@ -174,7 +172,7 @@ describe('test link marks', function () {
174172 const text = 'some text'
175173
176174 describe ( 'link to website' , function ( ) {
177- const url = 'https://nextcloud.com /'
175+ const url = 'https://example.org /'
178176 // Helper to reduce duplicated code, checking inserting with and without selected text
179177 const checkLinkWebsite = ( url , text ) => {
180178 cy . getSubmenuEntry ( 'insert-link' , 'insert-link-website' ) . click ( )
0 commit comments