@@ -4,8 +4,8 @@ context('Document Operations', () => {
44 describe ( 'working with tree view' , ( ) => {
55 before ( ( ) => {
66 cy . connect ( )
7- // TODO(DP): might have to improve by adding more before / after hooks to prevent dangling documents
8- // see #400
7+ // TODO(DP): might have to improve by adding more before / after hooks to prevent dangling documents
8+ // see #400
99 } )
1010
1111 describe ( 'db context menu' , ( ) => {
@@ -15,7 +15,7 @@ context('Document Operations', () => {
1515 . should ( 'be.visible' )
1616 cy . get ( '.fusion-item' )
1717 . click ( )
18- // all we need is the final part of the node-id attribute
18+ // all we need is the final part of the node-id attribute
1919 cy . get ( '[node-id$=db]' )
2020 . rightclick ( )
2121 . then ( ( ) => {
@@ -27,11 +27,11 @@ context('Document Operations', () => {
2727 . should ( 'be.visible' )
2828 . click ( )
2929 } )
30- // (DP): start workaround for #413
30+ // (DP): start workaround for #413
3131 cy . get ( '[node-id$=db]' )
3232 . trigger ( 'mousemove' )
3333 . type ( '{enter}' )
34- // end workaround for #413
34+ // end workaround for #413
3535 cy . get ( '.ReactVirtualized__Grid' )
3636 . contains ( 'untitled-1' )
3737
@@ -47,13 +47,13 @@ context('Document Operations', () => {
4747 // or by using the file menu UI instead
4848 // see #414
4949 it ( 'should let users edit new document' , ( ) => {
50- cy . get ( '[node-id$=untitled-1]' )
51- . dblclick ( )
52- cy . get ( '.view-line' )
53- . type ( 'asdf{meta+s}' )
54- } )
55- // see #414 workaround is to run this after editing and saving the document,
56- // we should be able to rename before entering content
50+ cy . get ( '[node-id$=untitled-1]' )
51+ . dblclick ( )
52+ cy . get ( '.view-line' )
53+ . type ( 'asdf{meta+s}' )
54+ } )
55+ // see #414 workaround is to run this after editing and saving the document,
56+ // we should be able to rename before entering content
5757 it ( 'should let users rename documents' , ( ) => {
5858 cy . get ( '[node-id$=untitled-1]' )
5959 . rightclick ( )
@@ -70,19 +70,19 @@ context('Document Operations', () => {
7070 . type ( '{alt+enter}' , { force : true } )
7171 cy . get ( '.dialogTitle' )
7272 . should ( 'contain.text' , 'Properties' )
73- // rename file -> text.xml
73+ // rename file -> text.xml
7474 cy . get ( '.value > .theia-input' )
7575 . clear ( )
7676 . type ( 'test.xml' )
77- // check properties table
77+ // check properties table
7878 cy . get ( '.dialogContent' )
7979 . find ( '.keys > tr' )
8080 . should ( 'have.length' , 11 )
8181 . contains ( 'Media Type' )
8282 cy . get ( '.dialogContent' )
8383 . find ( '.keys > tr' )
8484 . contains ( 'Owner' )
85- // check permissions table
85+ // check permissions table
8686 cy . get ( '.dialogContent' )
8787 . find ( '.permissions-editor > tr' )
8888 . should ( 'have.length' , 3 )
@@ -120,7 +120,7 @@ context('Document Operations', () => {
120120 . click ( )
121121 cy . get ( '.main' )
122122 . click ( )
123- // make sure all test files are gone see #400
123+ // make sure all test files are gone see #400
124124 cy . get ( '[node-id$=untitled-1]' )
125125 . should ( 'not.exist' )
126126 cy . get ( '[node-id$=test\\.txt]' )
0 commit comments