Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

update e2e compare

Ed Plato8d01d3cc5573
diff --git a/e2e/features/compare/compare-test.js b/e2e/features/compare/compare-test.js
index 282b924d0..bbe941626 100644
--- a/e2e/features/compare/compare-test.js
+++ b/e2e/features/compare/compare-test.js
@@ -62,7 +62,10 @@ module.exports = {
const disableMessage = 'You must exit comparison mode to download data';
c.assert.cssClassPresent(dataDownloadTabButton, 'disabled');
c.assert.attributeContains(dataDownloadTabButton, 'aria-label', disableMessage);
- c.assert.attributeContains(dataDownloadTabButton, 'title', disableMessage);
+ c.moveToElement('#download-sidebar-tab', 10, 10);
+ c.waitForElementVisible(tooltipSelector, TIME_LIMIT, (e) => {
+ c.assert.containsText(tooltipSelector, disableMessage);
+ });
// Clicking does not switch tabs
c.click(dataDownloadTabButton);
@@ -79,7 +82,10 @@ module.exports = {
c.expect.element('#wv-eventscontent').to.not.be.present;
c.assert.cssClassPresent(eventsSidebarTabButton, 'disabled');
c.assert.attributeContains(eventsSidebarTabButton, 'aria-label', disableMessage);
- c.assert.attributeContains(eventsSidebarTabButton, 'title', disableMessage);
+ c.moveToElement('#events-sidebar-tab', 10, 10);
+ c.waitForElementVisible(tooltipSelector, TIME_LIMIT, (e) => {
+ c.assert.containsText(tooltipSelector, disableMessage);
+ });
},
'Removing layer removes correct layer from correct layer group': (c) => {