diff --git a/core/frontend/apps/amp/lib/helpers/amp_content.js b/core/frontend/apps/amp/lib/helpers/amp_content.js index 708803977c..7aabd91266 100644 --- a/core/frontend/apps/amp/lib/helpers/amp_content.js +++ b/core/frontend/apps/amp/lib/helpers/amp_content.js @@ -201,3 +201,5 @@ function ampContent() { } module.exports = ampContent; + +module.exports.async = true; diff --git a/test/frontend-acceptance/default_routes.test.js b/test/frontend-acceptance/default_routes.test.js index d9df4b2942..8acd390e15 100644 --- a/test/frontend-acceptance/default_routes.test.js +++ b/test/frontend-acceptance/default_routes.test.js @@ -208,8 +208,10 @@ describe('Default Frontend routing', function () { $('style[amp-custom]').length.should.equal(1); - res.text.should.containEql(':root {--ghost-accent-color: #FF1A75;}'); + // This asserts we should have some content (and not [object Promise] !) + $('.post-content p').length.should.be.greaterThan(0); + res.text.should.containEql(':root {--ghost-accent-color: #FF1A75;}'); res.text.should.not.containEql('__GHOST_URL__'); }); });