Updated tests for draft "Saved" indicator

refs 401aeb6f71

- save status indicator now shows "Draft - Saved" so tests needed to match
This commit is contained in:
Kevin Ansfield 2021-08-31 10:11:40 +01:00
parent 401aeb6f71
commit e12163a713
1 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ describe('Acceptance: Editor', function () {
expect(
find('[data-test-editor-post-status]').textContent.trim(),
'draft status text'
).to.equal('Draft');
).to.match(/Draft\s+- Saved/);
// click on publish now
await click('[data-test-publishmenu-trigger]');
@ -325,7 +325,7 @@ describe('Acceptance: Editor', function () {
expect(
find('[data-test-editor-post-status]').textContent.trim(),
'post status updated after unpublished'
).to.equal('Draft');
).to.match(/Draft\s+- Saved/);
// schedule post
await click('[data-test-publishmenu-cancel]');
@ -421,7 +421,7 @@ describe('Acceptance: Editor', function () {
expect(
find('[data-test-editor-post-status]').textContent.trim(),
'status text after unschedule'
).to.equal('Draft');
).to.match(/Draft\s+- Saved/);
expect(
find('[data-test-schedule-countdown]'),