Fixed tests for copy changes

This commit is contained in:
Rish 2019-11-13 09:43:41 +05:30
parent fd26864c28
commit 17ef3efcef

View File

@ -348,9 +348,9 @@ describe('Acceptance: Editor', function () {
'publish menu is not shown after closed' 'publish menu is not shown after closed'
).to.not.exist; ).to.not.exist;
// expect countdown to show warning, that post will go live in x minutes // expect countdown to show warning, that post is scheduled to be published and sent in x minutes
expect(find('[data-test-schedule-countdown]').textContent.trim(), 'notification countdown') expect(find('[data-test-schedule-countdown]').textContent.trim(), 'notification countdown')
.to.contain('Post will go live in'); .to.contain('Scheduled to be published and sent');
expect( expect(
find('[data-test-publishmenu-trigger]').textContent.trim(), find('[data-test-publishmenu-trigger]').textContent.trim(),
@ -540,9 +540,9 @@ describe('Acceptance: Editor', function () {
// Dropdown menu should be 'Update Post' and 'Unschedule' // Dropdown menu should be 'Update Post' and 'Unschedule'
expect(find('[data-test-publishmenu-trigger]').textContent.trim(), 'text in save button for scheduled post') expect(find('[data-test-publishmenu-trigger]').textContent.trim(), 'text in save button for scheduled post')
.to.equal('Scheduled'); .to.equal('Scheduled');
// expect countdown to show warning, that post will go live in x minutes // expect countdown to show warning, that post is scheduled to be published and sent in x minutes
expect(find('[data-test-schedule-countdown]').textContent.trim(), 'notification countdown') expect(find('[data-test-schedule-countdown]').textContent.trim(), 'notification countdown')
.to.contain('Post will go live in'); .to.contain('Scheduled to be published and sent');
}); });
it('shows author token input and allows changing of authors in PSM', async function () { it('shows author token input and allows changing of authors in PSM', async function () {