${state.translate(
@@ -18,5 +18,5 @@ module.exports = function intro(state) {
'uploadPageExplainer'
)}
- `;
+ `;
};
diff --git a/app/ui/modal.js b/app/ui/modal.js
index 67e90661..df10ae77 100644
--- a/app/ui/modal.js
+++ b/app/ui/modal.js
@@ -2,7 +2,7 @@ const html = require('choo/html');
module.exports = function(state, emit) {
return html`
-
@@ -14,7 +14,7 @@ module.exports = function(state, emit) {
${state.modal(state, emit, close)}
-
+
`;
function close(event) {
diff --git a/app/ui/okDialog.js b/app/ui/okDialog.js
index f76d9439..d8962791 100644
--- a/app/ui/okDialog.js
+++ b/app/ui/okDialog.js
@@ -3,7 +3,7 @@ const html = require('choo/html');
module.exports = function(message) {
return function(state, emit, close) {
return html`
-
+
${message}
-
+
`;
};
};
diff --git a/app/ui/promo.js b/app/ui/promo.js
index de9d5fc6..13059a32 100644
--- a/app/ui/promo.js
+++ b/app/ui/promo.js
@@ -13,7 +13,7 @@ class Promo extends Component {
createElement() {
return html`
-
@@ -31,7 +31,7 @@ class Promo extends Component {
>
-
+
`;
}
}
diff --git a/app/ui/signupDialog.js b/app/ui/signupDialog.js
index 2587288c..489d5536 100644
--- a/app/ui/signupDialog.js
+++ b/app/ui/signupDialog.js
@@ -8,7 +8,7 @@ module.exports = function() {
document.getElementById('email-input').focus();
});
return html`
-
+
${state.translate('accountBenefitTitle')}
@@ -40,7 +40,7 @@ module.exports = function() {
title="${state.translate('deletePopupCancel')}"
onclick=${close}>${state.translate('deletePopupCancel')}
-
`;
+ `;
function emailish(str) {
if (!str) {
diff --git a/test/integration/download-tests.js b/test/integration/download-tests.js
index 908cb29c..b20e77b1 100644
--- a/test/integration/download-tests.js
+++ b/test/integration/download-tests.js
@@ -36,7 +36,6 @@ describe('Firefox Send', function() {
});
it('should update the download count on home page after 1 download', function() {
- const expectedExpiresAfterText = 'Expires after 1 download';
browser.chooseFile(
homePage.uploadInput,
`${testFilesPath}/${testFiles[0]}`
@@ -51,10 +50,10 @@ describe('Firefox Send', function() {
downloadPage.download();
browser.waitForExist(downloadPage.downloadComplete);
browser.back();
- browser.waitForExist(`#archive-${downloadPage.fileId}`);
+ browser.waitForExist('send-archive');
assert.equal(
- browser.getText(`#archive-${downloadPage.fileId} > div`).substring(0, 24),
- expectedExpiresAfterText
+ browser.getText('send-archive > div').substring(0, 24),
+ 'Expires after 1 download'
);
});
});