Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Create loadAndSkipTour reuseable function #930

Benjamin King0e070e9c5782
diff --git a/e2e/reuseables/skip-tour.js b/e2e/reuseables/skip-tour.js
index 101f1736e..098eb8cef 100644
--- a/e2e/reuseables/skip-tour.js
+++ b/e2e/reuseables/skip-tour.js
@@ -1,13 +1,12 @@
-const normalizeViewport = require('./normalize-viewport.js').normalizeViewport;
module.exports = {
loadAndSkipTour: function(client, wait) {
- normalizeViewport(client, 1000, 1024);
+ client.resizeWindow(1200, 1024);
client.url(client.globals.url)
.execute(function() {
return !(window.localStorage.getItem('hideSplash')); // See if there should be a tour
}, [], function(result) {
- const hasTour = result.value;
- if (hasTour) {
+ const hasTour = result.value
+ if(hasTour) {
client.waitForElementVisible('#skipTour', wait, function() {
client.click('#skipTour');
client.pause(1000);