mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
✅ fix slack tests (#807)
refs ece1d8cef1
- alert was switched for a notification so tests needed updating
This commit is contained in:
parent
ece1d8cef1
commit
5f215dc56a
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ describe('Acceptance: Settings - Apps - Slack', function () {
|
|||
await fillIn('#slack-settings input[name="slack[url]"]', 'https://hooks.slack.com/services/1275958430');
|
||||
await click(testSelector('send-notification-button'));
|
||||
|
||||
expect(find('.gh-alert-blue').length, 'modal element').to.equal(1);
|
||||
expect(find('.gh-notification').length, 'number of notifications').to.equal(1);
|
||||
expect(find('#slack-settings .error .response').text().trim(), 'inline validation response')
|
||||
.to.equal('');
|
||||
|
||||
|
@ -100,13 +100,13 @@ describe('Acceptance: Settings - Apps - Slack', function () {
|
|||
});
|
||||
});
|
||||
|
||||
await click('.gh-alert-blue .gh-alert-close');
|
||||
await click('.gh-notification .gh-notification-close');
|
||||
await click(testSelector('send-notification-button'));
|
||||
|
||||
// we shouldn't try to send the test request if the save fails
|
||||
let [lastRequest] = server.pretender.handledRequests.slice(-1);
|
||||
expect(lastRequest.url).to.not.match(/\/slack\/test/);
|
||||
expect(find('.gh-alert-blue').length, 'check slack alert after api validation error').to.equal(0);
|
||||
expect(find('.gh-notification').length, 'check slack notification after api validation error').to.equal(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue