Fixed failing test

refs https://github.com/TryGhost/Team/issues/1125
refs 4f3e340c03
refs 40269466f2

- The 'Publish & send' copy is now a default when publishing a post and has been missed to change in the refed commit
This commit is contained in:
Naz 2021-10-07 13:09:55 +02:00
parent 40269466f2
commit 843b810d1c

View File

@ -117,7 +117,7 @@ describe('Acceptance: Editor', function () {
return await authenticateSession();
});
it('renders the editor correctly, PSM Publish Date and Save Button', async function () {
it.only('renders the editor correctly, PSM Publish Date and Save Button', async function () {
let [post1] = this.server.createList('post', 2, {authors: [author]});
let futureTime = moment().tz('Etc/UTC').add(10, 'minutes');
@ -315,7 +315,7 @@ describe('Acceptance: Editor', function () {
expect(
find('[data-test-publishmenu-save]').textContent.trim(),
'publish menu save button updated after published post is unpublished'
).to.equal('Publish');
).to.equal('Publish & send');
expect(
find('[data-test-publishmenu-draft]'),
@ -409,7 +409,7 @@ describe('Acceptance: Editor', function () {
expect(
find('[data-test-publishmenu-save]').textContent.trim(),
'publish menu save button updated after scheduled post is unscheduled'
).to.equal('Publish');
).to.equal('Publish & send');
await click('[data-test-publishmenu-cancel]');