Fixed tests

refs b474e00cf8

- the editor test state has no email setup so the publish button will show "Publish" rather than "Publish & send"
This commit is contained in:
Kevin Ansfield 2021-10-21 13:16:20 +01:00
parent b474e00cf8
commit f2e8cc3926

View File

@ -206,7 +206,7 @@ describe('Acceptance: Editor', function () {
expect(
find('[data-test-publishmenu-save]').textContent.trim(),
'draft post publish button text'
).to.equal('Publish & send');
).to.equal('Publish');
// Publish the post
await click('[data-test-publishmenu-save]');
@ -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 & send');
).to.equal('Publish');
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 & send');
).to.equal('Publish');
await click('[data-test-publishmenu-cancel]');