Browse Source

Add debug prints

Steven Silvester 8 years ago
parent
commit
72d762ed83
2 changed files with 6 additions and 0 deletions
  1. 4 0
      test/src/notebook/notebook/default-toolbar.spec.ts
  2. 2 0
      test/src/utils.ts

+ 4 - 0
test/src/notebook/notebook/default-toolbar.spec.ts

@@ -226,9 +226,13 @@ describe('notebook/notebook/default-toolbar', () => {
         panel.attach(document.body);
         button.attach(document.body);
         button.node.click();
+        console.log('***1');
         acceptDialog(panel.node).then(() => {
+          console.log('**4');
           expect(context.kernel.status).to.be('restarting');
+          console.log('**5');
           panel.dispose();
+          console.log('**6');
           button.dispose();
           done();
         });

+ 2 - 0
test/src/utils.ts

@@ -31,8 +31,10 @@ function waitForDialog(host: HTMLElement = document.body): Promise<void> {
 export
 function acceptDialog(host: HTMLElement = document.body): Promise<void> {
   return waitForDialog(host).then(() => {
+    console.log('***2');
     let node = host.getElementsByClassName('jp-Dialog-okButton')[0];
     if (node) {
+      console.log('***3');
       (node as HTMLElement).click();
     }
   });