Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix header label #2306

Benjamin Kinge93a7fb22d9f
diff --git a/e2e/features/palettes/disable-test.js b/e2e/features/palettes/disable-test.js
index 5bf0462e3..3482a6d62 100644
--- a/e2e/features/palettes/disable-test.js
+++ b/e2e/features/palettes/disable-test.js
@@ -2,28 +2,28 @@ const normalizeViewport = require('../../reuseables/normalize-viewport.js').norm
const TIME_LIMIT = 10000;
const enabledPermalink = '?l=Last_of_the_Wild_1995-2004';
const disabledPermalink = '?l=Last_of_the_Wild_1995-2004(disabled=0-13-12-1-2-6)';
-const classColorBoxId = '#Last_of_the_Wild_1995-2004_0_legend-color-active'
+const classColorBoxId = '#Last_of_the_Wild_1995-2004_0_legend-color-active';
module.exports = {
- before: function (client) {
+ before: function(client) {
normalizeViewport(client, 1000, 850);
- client.url(client.globals.url + enabledPermalink)
+ client.url(client.globals.url + enabledPermalink);
},
- 'Verify that toggling class updates permalink and layer-legend': function (client) {
- client.waitForElementVisible('#active-Last_of_the_Wild_1995-2004', TIME_LIMIT, function () {
+ 'Verify that toggling class updates permalink and layer-legend': function(client) {
+ client.waitForElementVisible('#active-Last_of_the_Wild_1995-2004', TIME_LIMIT, function() {
client.expect.element('#active-Last_of_the_Wild_1995-2004 .disabled-classification').to.not.be.present;
client.click('#active-Last_of_the_Wild_1995-2004 .wv-layers-options');
- client.waitForElementVisible('.layer-classification-toggle', 2000, function () {
+ client.waitForElementVisible('.layer-classification-toggle', 2000, function() {
client.click('.react-switch-case .react-switch-button');
client.waitForElementVisible(classColorBoxId + '0.disabled-classification', TIME_LIMIT, () => {
client.expect.element(classColorBoxId + '1.disabled-classification').to.not.be.present;
client.assert.urlContains('(disabled=0)');
- })
+ });
});
});
},
- 'Verify that loaded permalink disables classes': function (client) {
- client.url(client.globals.url + disabledPermalink)
- client.waitForElementVisible(classColorBoxId + '0', TIME_LIMIT, function () {
+ 'Verify that loaded permalink disables classes': function(client) {
+ client.url(client.globals.url + disabledPermalink);
+ client.waitForElementVisible(classColorBoxId + '0', TIME_LIMIT, function() {
client.expect.element(classColorBoxId + '0.disabled-classification').to.be.present;
client.expect.element(classColorBoxId + '13.disabled-classification').to.be.present;
client.expect.element(classColorBoxId + '6.disabled-classification').to.be.present;
@@ -32,7 +32,7 @@ module.exports = {
client.expect.element(classColorBoxId + '3.disabled-classification').to.not.be.present;
});
},
- after: function (client) {
+ after: function(client) {
client.end();
}
};
diff --git a/web/js/components/layer/settings/classification-toggle.js b/web/js/components/layer/settings/classification-toggle.js
index 947528730..4387948ab 100644
--- a/web/js/components/layer/settings/classification-toggle.js
+++ b/web/js/components/layer/settings/classification-toggle.js
@@ -17,7 +17,7 @@ class ClassificationToggle extends React.Component {
const tooltips = legend.tooltips;
return (
<div className="layer-classification-toggle settings-component">
- <h2 className="wv-header">Disable/Enable/</h2>
+ <h2 className="wv-header">Disable/Enable</h2>
<Scrollbar style={{ maxHeight: height + 'px' }}>
{legend.colors.map((color, index) => {
const id = legend.id + index;