Interactive interface for browsing global, full-resolution satellite imagery
fix compare tests #1964
Benjamin Kinge58011589ada
diff --git a/e2e/features/compare/compare-test.js b/e2e/features/compare/compare-test.jsindex 0f608e3ef..92d43e30e 100644--- a/e2e/features/compare/compare-test.js+++ b/e2e/features/compare/compare-test.js@@ -1,7 +1,7 @@const reuseables = require('../../reuseables/skip-tour.js');const localSelectors = require('../../reuseables/selectors.js');const localQuerystrings = require('../../reuseables/querystrings.js');-const animationButton = '#timeline-header #animate-button';+const animationButtonCase = '#timeline-header .animate-button';const ImageDownloadButton = '#wv-image-button';const eventsTabButton = '#events-sidebar-tab';const dataDownloadTabButton = '#download-sidebar-tab';@@ -15,15 +15,15 @@ const collapsedToggleButton =const TIME_LIMIT = 20000;module.exports = {- before: function(client) {+ before: function (client) {reuseables.loadAndSkipTour(client, TIME_LIMIT);},// load A|B and verify that it is active- 'A|B is loaded': function(client) {+ 'A|B is loaded': function (client) {client.url(client.globals.url + localQuerystrings.swipeAndAIsActive);client.waitForElementVisible(localSelectors.swipeDragger, TIME_LIMIT);},- 'Animation, image download, data-download, and events are disabled when in A|B': function(+ 'Animation, image download, data-download, and events are disabled when in A|B': function (client) {// Verify Animation widget can't be clicked@@ -33,9 +33,9 @@ module.exports = {client.pause(100);client.expect.element('#wv-animation-widget').to.not.be.visible;*/- client.assert.cssClassPresent(animationButton, 'wv-disabled-button');+ client.assert.cssClassPresent(animationButtonCase, 'wv-disabled-button');client.assert.attributeContains(- animationButton,+ animationButtonCase,'title','Animation feature is deactivated when Compare feature is active');@@ -50,8 +50,10 @@ module.exports = {'You must exit comparison mode to use the snapshot feature');// Verify events can't be clicked- client.click(eventsTabButton);- client.pause(100);+ client+ .moveToElement(eventsTabButton, 1, 1)+ .mouseButtonDown(0)+ .pause(100);client.expect.element('#wv-eventscontent').to.not.be.visible;client.assert.cssClassPresent(eventsTabButton, 'disabled');client.assert.attributeContains(@@ -60,7 +62,10 @@ module.exports = {'You must exit comparison mode to use the natural events feature');// Verify Data Download can't be clicked- client.click(dataDownloadTabButton);+ client+ .moveToElement(dataDownloadTabButton, 1, 1)+ .mouseButtonDown(0)+ .pause(100);client.pause(100);client.expect.element('#wv-datacontent').to.not.be.visible;client.assert.cssClassPresent(dataDownloadTabButton, 'disabled');@@ -70,7 +75,7 @@ module.exports = {'You must exit comparison mode to download data');},- 'Removing layer removes correct layer from correct layer group': function(+ 'Removing layer removes correct layer from correct layer group': function (client) {client.expect.element(ModisTruecolorLayerA).to.be.visible;@@ -84,12 +89,12 @@ module.exports = {/*** B state can layer list collapse*/- 'Collapse layer list with B state and test label shows correct number of layers': function(+ 'Collapse layer list with B state and test label shows correct number of layers': function (client) {client.url(client.globals.url + localQuerystrings.spyAndBIsActive);- client.waitForElementVisible(toggleButton, TIME_LIMIT, function() {+ client.waitForElementVisible(toggleButton, TIME_LIMIT, function () {client.expect.element(collapsedToggleButton).to.not.be.visible;client.click(toggleButton);client.pause(100);@@ -105,7 +110,7 @@ module.exports = {* Remove some layers from active state B and then toggle out of A|B mode to verify* that layer-sidebar inherits B state layers*/- 'If you exit A|B with B selection active, the active state will then be the B state': function(+ 'If you exit A|B with B selection active, the active state will then be the B state': function (client) {client.expect.element('#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor')@@ -121,7 +126,7 @@ module.exports = {client.waitForElementNotPresent('.timeline-dragger.draggerA',TIME_LIMIT,- function() {+ function () {client.expect.element('#activeB-Coastlines').to.be.visible;client.expect.element('#activeB-MODIS_Terra_CorrectedReflectance_TrueColor'@@ -135,7 +140,7 @@ module.exports = {});},- after: function(client) {+ after: function (client) {client.end();}};