@@ -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' ) ;
@@ -238,7 +244,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
238244 it ( 'Insert autosave' , function ( ) {
239245 desktopHelper . insertComment ( undefined , false ) ;
240246 cy . cGet ( '#map' ) . focus ( ) ;
241- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
247+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
248+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
242249 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
243250
244251 helper . reloadDocument ( newFilePath ) ;
@@ -249,10 +256,12 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
249256 it ( 'Insert autosave save' , function ( ) {
250257 desktopHelper . insertComment ( undefined , false ) ;
251258 cy . cGet ( '#map' ) . focus ( ) ;
252- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
259+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
260+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
253261 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
254262 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
255- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
263+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
264+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
256265 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.not.visible' ) ;
257266 cy . cGet ( '.annotation-marker' ) . should ( 'be.visible' ) ;
258267 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'have.text' , 'some text0' ) ;
@@ -265,10 +274,12 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
265274 it ( 'Insert autosave cancel' , function ( ) {
266275 desktopHelper . insertComment ( undefined , false ) ;
267276 cy . cGet ( '#map' ) . focus ( ) ;
268- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
277+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
278+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
269279 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
270280 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
271- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'not.exist' ) ;
281+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
282+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
272283 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'not.exist' ) ;
273284 cy . cGet ( '.annotation-marker' ) . should ( 'not.exist' ) ;
274285 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'not.exist' ) ;
@@ -286,7 +297,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
286297 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
287298 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
288299 cy . cGet ( '#map' ) . focus ( ) ;
289- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
300+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
301+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
290302 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
291303
292304 helper . reloadDocument ( newFilePath ) ;
@@ -302,7 +314,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
302314 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
303315 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
304316 cy . cGet ( '#map' ) . focus ( ) ;
305- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
317+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
318+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
306319 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
307320 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
308321 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0, some other text' ) ;
@@ -321,7 +334,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
321334 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
322335 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
323336 cy . cGet ( '#map' ) . focus ( ) ;
324- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
337+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
338+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
325339 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
326340 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
327341 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0' ) ;
@@ -340,7 +354,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
340354 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
341355 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
342356 cy . cGet ( '#map' ) . focus ( ) ;
343- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
357+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
358+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
344359 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
345360 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
346361 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
@@ -358,12 +373,14 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
358373 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
359374 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
360375 cy . cGet ( '#map' ) . focus ( ) ;
361- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
376+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
377+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
362378 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
363379 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
364380 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
365381 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
366- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
382+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
383+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
367384 cy . cGet ( '.cool-annotation-edit.reply-annotation' ) . should ( 'be.not.visible' ) ;
368385 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'include.text' , 'some text0' ) ;
369386 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'include.text' , 'some reply text' ) ;
@@ -381,12 +398,14 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
381398 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
382399 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
383400 cy . cGet ( '#map' ) . focus ( ) ;
384- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
401+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
402+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
385403 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
386404 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
387405 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
388406 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
389- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
407+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
408+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
390409 cy . cGet ( '.cool-annotation-edit.reply-annotation' ) . should ( 'be.not.visible' ) ;
391410 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'have.text' , 'some text0' ) ;
392411
0 commit comments