@@ -70,17 +70,21 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
7070 it ( 'Tab Navigation' , function ( ) {
7171 desktopHelper . insertComment ( undefined , false ) ;
7272
73- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
73+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
74+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
7475 cy . realPress ( 'Tab' ) ;
75- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
76+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
77+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
7678 cy . cGet ( '#annotation-cancel-new:focus-visible' ) ;
7779
7880 cy . realPress ( 'Tab' ) ;
7981 cy . cGet ( '#annotation-save-new:focus-visible' ) ;
80- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
82+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
83+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
8184
8285 cy . realPress ( 'Tab' ) ;
83- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
86+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
87+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
8488 } ) ;
8589} ) ;
8690
@@ -149,11 +153,13 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
149153 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'have.text' , '!' ) ;
150154 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'be.visible' ) ;
151155 cy . cGet ( '.cool-annotation-img' ) . click ( ) ;
152- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
156+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
157+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
153158 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
154159 cy . cGet ( '.cool-annotation-img' ) . click ( ) ;
155160 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0' ) ;
156- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
161+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
162+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
157163 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'not.have.text' , '!' ) ;
158164 cy . cGet ( '#map' ) . focus ( ) ;
159165 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'be.not.visible' ) ;
@@ -237,7 +243,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
237243 it ( 'Insert autosave' , function ( ) {
238244 desktopHelper . insertComment ( undefined , false ) ;
239245 cy . cGet ( '#map' ) . focus ( ) ;
240- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
246+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
247+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
241248 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
242249
243250 helper . reloadDocument ( newFilePath ) ;
@@ -248,10 +255,12 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
248255 it ( 'Insert autosave save' , function ( ) {
249256 desktopHelper . insertComment ( undefined , false ) ;
250257 cy . cGet ( '#map' ) . focus ( ) ;
251- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
258+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
259+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
252260 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
253261 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
254- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
262+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
263+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
255264 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.not.visible' ) ;
256265 cy . cGet ( '.annotation-marker' ) . should ( 'be.visible' ) ;
257266 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'have.text' , 'some text0' ) ;
@@ -264,10 +273,12 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
264273 it ( 'Insert autosave cancel' , function ( ) {
265274 desktopHelper . insertComment ( undefined , false ) ;
266275 cy . cGet ( '#map' ) . focus ( ) ;
267- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
276+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
277+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
268278 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
269279 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
270- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'not.exist' ) ;
280+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
281+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
271282 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'not.exist' ) ;
272283 cy . cGet ( '.annotation-marker' ) . should ( 'not.exist' ) ;
273284 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'not.exist' ) ;
@@ -285,7 +296,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
285296 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
286297 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
287298 cy . cGet ( '#map' ) . focus ( ) ;
288- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
299+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
300+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
289301 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
290302
291303 helper . reloadDocument ( newFilePath ) ;
@@ -301,7 +313,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
301313 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
302314 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
303315 cy . cGet ( '#map' ) . focus ( ) ;
304- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
316+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
317+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
305318 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
306319 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
307320 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0, some other text' ) ;
@@ -320,7 +333,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
320333 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
321334 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
322335 cy . cGet ( '#map' ) . focus ( ) ;
323- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
336+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
337+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
324338 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
325339 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
326340 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0' ) ;
@@ -339,7 +353,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
339353 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
340354 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
341355 cy . cGet ( '#map' ) . focus ( ) ;
342- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
356+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
357+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
343358 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
344359 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
345360 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
@@ -357,12 +372,14 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
357372 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
358373 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
359374 cy . cGet ( '#map' ) . focus ( ) ;
360- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
375+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
376+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
361377 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
362378 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
363379 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
364380 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
365- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
381+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
382+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
366383 cy . cGet ( '.cool-annotation-edit.reply-annotation' ) . should ( 'be.not.visible' ) ;
367384 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'include.text' , 'some text0' ) ;
368385 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'include.text' , 'some reply text' ) ;
@@ -380,12 +397,14 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
380397 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
381398 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
382399 cy . cGet ( '#map' ) . focus ( ) ;
383- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
400+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
401+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
384402 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
385403 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
386404 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
387405 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
388- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
406+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
407+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
389408 cy . cGet ( '.cool-annotation-edit.reply-annotation' ) . should ( 'be.not.visible' ) ;
390409 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'have.text' , 'some text0' ) ;
391410
0 commit comments