Email newsletter
@@ -91,4 +91,4 @@
@confirm={{action "leavePortalSettings"}}
@close={{action "closeLeaveSettingsModal"}}
@modifier="action wide" />
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/ghost/admin/app/templates/settings/members-email.hbs b/ghost/admin/app/templates/settings/members-email.hbs
deleted file mode 100644
index 7ace9373b9..0000000000
--- a/ghost/admin/app/templates/settings/members-email.hbs
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
- {{#if this.showLeaveSettingsModal}}
-
- {{/if}}
-
-
-{{#if this.showEmailDesignSettings}}
-
-
-
-{{/if}}
\ No newline at end of file
diff --git a/ghost/admin/app/templates/settings/members-email-labs.hbs b/ghost/admin/app/templates/settings/newsletters.hbs
similarity index 94%
rename from ghost/admin/app/templates/settings/members-email-labs.hbs
rename to ghost/admin/app/templates/settings/newsletters.hbs
index 4c2511febf..a63cfe42e3 100644
--- a/ghost/admin/app/templates/settings/members-email-labs.hbs
+++ b/ghost/admin/app/templates/settings/newsletters.hbs
@@ -20,7 +20,7 @@
-
\ No newline at end of file
+
diff --git a/ghost/admin/tests/acceptance/settings/members-email-test.js b/ghost/admin/tests/acceptance/settings/members-email-test.js
deleted file mode 100644
index 9adf009050..0000000000
--- a/ghost/admin/tests/acceptance/settings/members-email-test.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import {authenticateSession} from 'ember-simple-auth/test-support';
-import {click, currentURL, find} from '@ember/test-helpers';
-import {expect} from 'chai';
-import {setupApplicationTest} from 'ember-mocha';
-import {setupMirage} from 'ember-cli-mirage/test-support';
-import {visit} from '../../helpers/visit';
-
-describe('Acceptance: Settings - Members email', function () {
- const hooks = setupApplicationTest();
- setupMirage(hooks);
-
- beforeEach(async function () {
- this.server.loadFixtures('configs');
-
- const role = this.server.create('role', {name: 'Owner'});
- this.server.create('user', {roles: [role]});
-
- return await authenticateSession();
- });
-
- it('loads non-labs route', async function () {
- await visit('/settings/members-email');
- expect(currentURL()).to.equal('/settings/members-email');
- });
-
- it('can manage open rate tracking', async function () {
- this.server.db.settings.update({key: 'email_track_opens'}, {value: 'true'});
-
- await visit('/settings/members-email');
- expect(find('[data-test-checkbox="email-track-opens"]')).to.be.checked;
-
- await click('label[for="email-track-opens"]');
- expect(find('[data-test-checkbox="email-track-opens"]')).to.not.be.checked;
-
- await click('[data-test-button="save-members-settings"]');
-
- expect(this.server.db.settings.findBy({key: 'email_track_opens'}).value).to.equal(false);
- });
-});
diff --git a/ghost/admin/tests/acceptance/settings/members-email-labs-test.js b/ghost/admin/tests/acceptance/settings/newsletters-test.js
similarity index 92%
rename from ghost/admin/tests/acceptance/settings/members-email-labs-test.js
rename to ghost/admin/tests/acceptance/settings/newsletters-test.js
index fd420459f2..dbbcd67115 100644
--- a/ghost/admin/tests/acceptance/settings/members-email-labs-test.js
+++ b/ghost/admin/tests/acceptance/settings/newsletters-test.js
@@ -1,12 +1,12 @@
import {authenticateSession} from 'ember-simple-auth/test-support';
import {click, currentURL, fillIn, find, findAll} from '@ember/test-helpers';
-import {disableLabsFlag, enableLabsFlag} from '../../helpers/labs-flag';
+import {enableLabsFlag} from '../../helpers/labs-flag';
import {expect} from 'chai';
import {setupApplicationTest} from 'ember-mocha';
import {setupMirage} from 'ember-cli-mirage/test-support';
import {visit} from '../../helpers/visit';
-describe('Acceptance: Settings - Members email (multipleNewsletters)', function () {
+describe('Acceptance: Settings - Newsletters (multipleNewsletters)', function () {
const hooks = setupApplicationTest();
setupMirage(hooks);
@@ -21,12 +21,6 @@ describe('Acceptance: Settings - Members email (multipleNewsletters)', function
return await authenticateSession();
});
- it('without flag - redirects labs to original', async function () {
- disableLabsFlag(this.server, 'multipleNewsletters');
- await visit('/settings/newsletters');
- expect(currentURL()).to.equal('/settings/members-email');
- });
-
it('with flag - redirects original to labs', async function () {
await visit('/settings/members-email');
expect(currentURL()).to.equal('/settings/newsletters');
@@ -47,7 +41,7 @@ describe('Acceptance: Settings - Members email (multipleNewsletters)', function
});
});
-describe('Acceptance: Settings - Members email (multipleNewslettersUI)', function () {
+describe('Acceptance: Settings - Newsletters (multipleNewslettersUI)', function () {
const hooks = setupApplicationTest();
setupMirage(hooks);