@@ -149,11 +149,13 @@ describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {
149149 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'have.text' , '!' ) ;
150150 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'be.visible' ) ;
151151 cy . cGet ( '.cool-annotation-img' ) . click ( ) ;
152- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
152+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
153+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
153154 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
154155 cy . cGet ( '.cool-annotation-img' ) . click ( ) ;
155156 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0' ) ;
156- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
157+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
158+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
157159 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'not.have.text' , '!' ) ;
158160 cy . cGet ( '#map' ) . focus ( ) ;
159161 cy . cGet ( '.cool-annotation-info-collapsed' ) . should ( 'be.not.visible' ) ;
@@ -238,7 +240,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
238240 it ( 'Insert autosave' , function ( ) {
239241 desktopHelper . insertComment ( undefined , false ) ;
240242 cy . cGet ( '#map' ) . focus ( ) ;
241- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
243+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
244+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
242245 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
243246
244247 helper . reloadDocument ( newFilePath ) ;
@@ -249,10 +252,12 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
249252 it ( 'Insert autosave save' , function ( ) {
250253 desktopHelper . insertComment ( undefined , false ) ;
251254 cy . cGet ( '#map' ) . focus ( ) ;
252- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
255+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
256+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
253257 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
254258 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
255- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
259+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
260+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
256261 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.not.visible' ) ;
257262 cy . cGet ( '.annotation-marker' ) . should ( 'be.visible' ) ;
258263 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'have.text' , 'some text0' ) ;
@@ -265,10 +270,12 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
265270 it ( 'Insert autosave cancel' , function ( ) {
266271 desktopHelper . insertComment ( undefined , false ) ;
267272 cy . cGet ( '#map' ) . focus ( ) ;
268- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
273+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
274+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
269275 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
270276 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
271- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'not.exist' ) ;
277+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'not.exist' ) ;
278+ cy . cGet ( '.annotation-button-delete' ) . should ( 'not.exist' ) ;
272279 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'not.exist' ) ;
273280 cy . cGet ( '.annotation-marker' ) . should ( 'not.exist' ) ;
274281 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'not.exist' ) ;
@@ -286,7 +293,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
286293 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
287294 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
288295 cy . cGet ( '#map' ) . focus ( ) ;
289- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
296+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
297+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
290298 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
291299
292300 helper . reloadDocument ( newFilePath ) ;
@@ -302,7 +310,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
302310 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
303311 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
304312 cy . cGet ( '#map' ) . focus ( ) ;
305- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
313+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
314+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
306315 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
307316 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
308317 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0, some other text' ) ;
@@ -321,7 +330,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
321330 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Modify' ) . click ( ) ;
322331 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . type ( ', some other text' ) ;
323332 cy . cGet ( '#map' ) . focus ( ) ;
324- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
333+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
334+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
325335 cy . cGet ( '.cool-annotation-edit.modify-annotation' ) . should ( 'be.visible' ) ;
326336 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
327337 cy . cGet ( '[id^=annotation-content-area-]' ) . should ( 'have.text' , 'some text0' ) ;
@@ -340,7 +350,8 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
340350 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
341351 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
342352 cy . cGet ( '#map' ) . focus ( ) ;
343- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
353+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
354+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
344355 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
345356 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
346357 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
@@ -358,12 +369,14 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
358369 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
359370 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
360371 cy . cGet ( '#map' ) . focus ( ) ;
361- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
372+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
373+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
362374 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
363375 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
364376 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
365377 cy . cGet ( '[id^=annotation-save-]' ) . click ( ) ;
366- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
378+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
379+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
367380 cy . cGet ( '.cool-annotation-edit.reply-annotation' ) . should ( 'be.not.visible' ) ;
368381 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'include.text' , 'some text0' ) ;
369382 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'include.text' , 'some reply text' ) ;
@@ -381,12 +394,14 @@ describe(['tagdesktop'], 'Annotation Autosave Tests', function() {
381394 cy . cGet ( 'body' ) . contains ( '.context-menu-item' , 'Reply' ) . click ( ) ;
382395 cy . cGet ( '[id^=annotation-reply-textarea-]' ) . type ( 'some reply text' ) ;
383396 cy . cGet ( '#map' ) . focus ( ) ;
384- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.visible' ) ;
397+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.visible' ) ;
398+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.visible' ) ;
385399 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'be.visible' ) ;
386400 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some text0' ) ;
387401 cy . cGet ( '[id^=annotation-modify-textarea-]' ) . should ( 'include.text' , 'some reply text' ) ;
388402 cy . cGet ( '.modify-annotation [id^=annotation-cancel-]' ) . click ( ) ;
389- cy . cGet ( '.cool-annotation-autosavelabel' ) . should ( 'be.not.visible' ) ;
403+ cy . cGet ( '.annotation-button-autosaved' ) . should ( 'be.not.visible' ) ;
404+ cy . cGet ( '.annotation-button-delete' ) . should ( 'be.not.visible' ) ;
390405 cy . cGet ( '.cool-annotation-edit.reply-annotation' ) . should ( 'be.not.visible' ) ;
391406 cy . cGet ( '.cool-annotation-content > div' ) . should ( 'have.text' , 'some text0' ) ;
392407
0 commit comments