Steven Silvester 8 gadi atpakaļ
vecāks
revīzija
e77a407608

+ 1 - 1
packages/services/test/src/integration.ts

@@ -139,7 +139,7 @@ describe('jupyter.services - Integration', () => {
         };
         future.onDone = () => {
           console.log('Execute finished');
-          return kernel.shutdown();
+          kernel.shutdown();
         };
       });
     });

+ 2 - 10
test/src/docmanager/savehandler.spec.ts

@@ -20,7 +20,7 @@ import {
 } from '@jupyterlab/docmanager';
 
 import {
-  acceptDialog, waitForDialog
+  acceptDialog, dismissDialog
 } from '../utils';
 
 
@@ -178,15 +178,7 @@ describe('docregistry/savehandler', () => {
             });
           }, 1500);  // The server has a one second resolution for saves.
         }).catch(done);
-        waitForDialog().then(() => {
-          let dialog = document.body.getElementsByClassName('jp-Dialog')[0];
-          let buttons = dialog.getElementsByTagName('button');
-          for (let i = 0; i < buttons.length; i++) {
-            if (buttons[i].textContent === 'REVERT') {
-              buttons[i].click();
-            }
-          }
-        });
+        dismissDialog().catch(done);
       });
 
     });