File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,25 @@ describe('Sync', () => {
126126 . should ( 'include' , 'after the lost connection' )
127127 } )
128128
129+ it . only ( 'shows warning when document session got cleaned up' , ( ) => {
130+ cy . get ( '.save-status button' )
131+ . click ( )
132+ cy . wait ( '@save' )
133+ cy . uploadTestFile ( 'test.md' )
134+
135+ cy . get ( '#editor-container .document-status' , { timeout : 30000 } )
136+ . should ( 'contain' , 'Editing session has expired.' )
137+
138+ // Reload button works
139+ cy . get ( '#editor-container .document-status a.button' )
140+ . contains ( 'Reload' )
141+ . click ( )
142+
143+ cy . getContent ( )
144+ cy . get ( '#editor-container .document-status .notecard' )
145+ . should ( 'not.exist' )
146+ } )
147+
129148 it ( 'passes the doc content from one session to the next' , ( ) => {
130149 cy . closeFile ( )
131150 cy . intercept ( { method : 'PUT' , url : '**/apps/text/session/*/create' } )
You can’t perform that action at this time.
0 commit comments