Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix share link date text e2e test

Ed Plato926ce22e7f04
diff --git a/e2e/features/social/share-test.js b/e2e/features/social/share-test.js
index c3bf9a2d6..9a72918cf 100644
--- a/e2e/features/social/share-test.js
+++ b/e2e/features/social/share-test.js
@@ -35,8 +35,10 @@ module.exports = {
const year = date.getUTCFullYear();
const month = date.getUTCMonth() + 1;
const day = date.getUTCDate();
+ const monthText = month < 10 ? `0${month}` : month;
+ const dayText = day < 10 ? `0${day}` : day;
client.assert.not.urlContains('t=');
- client.assert.attributeContains(socialLinkInput, 'value', `t=${year}-${month < 10 ? `0${month}` : month}-${day}`);
+ client.assert.attributeContains(socialLinkInput, 'value', `t=${year}-${monthText}-${dayText}`);
},
after(client) {
client.end();