##// END OF EJS Templates
make sure kernel started running
Paul Ivanov -
Show More
@@ -16,6 +16,7 b' casper.open_new_notebook = function () {'
16 this.thenClick('button#new_notebook');
16 this.thenClick('button#new_notebook');
17 this.waitForPopup('');
17 this.waitForPopup('');
18
18
19 this.withPopup('', function () {this.waitForSelector('.CodeMirror-code');});
19 this.then(function () {
20 this.then(function () {
20 // XXX: Kind of odd, the next line works for one test, but not when
21 // XXX: Kind of odd, the next line works for one test, but not when
21 // running multiple tests back-to-back, so we will just point the main
22 // running multiple tests back-to-back, so we will just point the main
@@ -27,6 +28,12 b' casper.open_new_notebook = function () {'
27
28
28 // initially, the cells aren't created, so wait for them to appear
29 // initially, the cells aren't created, so wait for them to appear
29 this.waitForSelector('.CodeMirror-code');
30 this.waitForSelector('.CodeMirror-code');
31 // and make sure the kernel has started
32 this.waitFor(function kernel_ready() {
33 return this.evaluate(function kernel_ready() {
34 return IPython.notebook.kernel.running;
35 });
36 });
30 };
37 };
31
38
32 // Shut down the current notebook's kernel.
39 // Shut down the current notebook's kernel.
General Comments 0
You need to be logged in to leave comments. Login now