Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Improve timeouts for cross browser testing

Josiah Sprague2d5f112ca9b0
diff --git a/e2e/step_definitions/utility.js b/e2e/step_definitions/utility.js
index 21b8ed08f..2c0f247f1 100644
--- a/e2e/step_definitions/utility.js
+++ b/e2e/step_definitions/utility.js
@@ -8,7 +8,9 @@ defineSupportCode(({Given, Then, When}) => {
Given('Worldview is in {string} state', (state) => {
var stateUrl = client.globals.url + (querystrings[state]||'');
- return client.url(stateUrl).execute('if (window.localStorage) window.localStorage.clear()').waitForElementVisible('body', delay);
+ client.url(stateUrl).execute('if (window.localStorage) window.localStorage.clear()');
+ client.pause(delay); // Give the page some time to load
+ return client.waitForElementVisible('body', delay/2);
});
// Scroll to an element by predefined selector