mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
wait for new-notebook button to arrive
before clicking it. Race condition was causing intermittent test failures.
This commit is contained in:
parent
5dfece0a2a
commit
99faeddf36
@ -13,6 +13,7 @@ casper.open_new_notebook = function () {
|
||||
var baseUrl = this.get_notebook_server();
|
||||
this.start(baseUrl);
|
||||
this.waitFor(this.page_loaded);
|
||||
this.waitForSelector('#kernel-python2 a, #kernel-python3 a');
|
||||
this.thenClick('#kernel-python2 a, #kernel-python3 a');
|
||||
|
||||
this.waitForPopup('');
|
||||
|
Loading…
Reference in New Issue
Block a user