diff --git a/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap b/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap
index fe165a6472..eda39c8d01 100644
--- a/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap
+++ b/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap
@@ -1201,6 +1201,119 @@ Object {
}
`;
+exports[`{{ghost_head}} helper members scripts includes portal when donations enabled 1 1`] = `
+Object {
+ "rendered": "
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ",
+}
+`;
+
exports[`{{ghost_head}} helper members scripts includes portal when members enabled 1 1`] = `
Object {
"rendered": "
@@ -1315,6 +1428,119 @@ Object {
}
`;
+exports[`{{ghost_head}} helper members scripts includes portal when recommendations enabled 1 1`] = `
+Object {
+ "rendered": "
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ",
+}
+`;
+
exports[`{{ghost_head}} helper members scripts includes stripe when connected 1 1`] = `
Object {
"rendered": "
diff --git a/ghost/core/test/unit/frontend/helpers/ghost_head.test.js b/ghost/core/test/unit/frontend/helpers/ghost_head.test.js
index f314785434..0b71a17d98 100644
--- a/ghost/core/test/unit/frontend/helpers/ghost_head.test.js
+++ b/ghost/core/test/unit/frontend/helpers/ghost_head.test.js
@@ -1138,6 +1138,30 @@ describe('{{ghost_head}} helper', function () {
}));
});
+ it('includes portal when recommendations enabled', async function () {
+ settingsCache.get.withArgs('recommendations_enabled').returns(true);
+
+ await testGhostHead(testUtils.createHbsResponse({
+ locals: {
+ relativeUrl: '/',
+ context: ['home', 'index'],
+ safeVersion: '4.3'
+ }
+ }));
+ });
+
+ it('includes portal when donations enabled', async function () {
+ settingsCache.get.withArgs('donations_enabled').returns(true);
+
+ await testGhostHead(testUtils.createHbsResponse({
+ locals: {
+ relativeUrl: '/',
+ context: ['home', 'index'],
+ safeVersion: '4.3'
+ }
+ }));
+ });
+
it('includes stripe when connected', async function () {
settingsCache.get.withArgs('members_enabled').returns(true);
settingsCache.get.withArgs('paid_members_enabled').returns(true);