Interactive interface for browsing global, full-resolution satellite imagery
Create loadAndSkipTour reuseable function #930
Benjamin King39e1847e84b1
diff --git a/e2e/reuseables/skip-tour.js b/e2e/reuseables/skip-tour.jsnew file mode 100644index 000000000..098eb8cef--- /dev/null+++ b/e2e/reuseables/skip-tour.js@@ -0,0 +1,19 @@+module.exports = {+ loadAndSkipTour: function(client, wait) {+ 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) {+ client.waitForElementVisible('#skipTour', wait, function() {+ client.click('#skipTour');+ client.pause(1000);+ });+ } else {+ client.waitForElementVisible('#wv-logo', wait);+ }+ });+ }+};