mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Updated tests for draft "Saved" indicator
refs e7501ece33
- save status indicator now shows "Draft - Saved" so tests needed to match
This commit is contained in:
parent
e7501ece33
commit
2ded68f845
1 changed files with 3 additions and 3 deletions
|
@ -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]'),
|
||||
|
|
Loading…
Add table
Reference in a new issue