From 99faeddf3648a2426b001002ef9523536578d37e Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 23 Jan 2015 15:07:25 -0800 Subject: [PATCH] wait for new-notebook button to arrive before clicking it. Race condition was causing intermittent test failures. --- IPython/html/tests/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/IPython/html/tests/util.js b/IPython/html/tests/util.js index 3753fbd9c..0f89b00f6 100644 --- a/IPython/html/tests/util.js +++ b/IPython/html/tests/util.js @@ -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('');