Fixed Slack integration test

refs 63b1e1d385

- test was using an old `/settings/design` route as something to navigate away to but the behaviour no longer matched the test expectations
- switched to using `/settings` as a more stable route
This commit is contained in:
Kevin Ansfield 2021-10-04 16:46:37 +01:00
parent 63b1e1d385
commit 463a1ea763

View File

@ -123,14 +123,14 @@ describe('Acceptance: Settings - Integrations - Slack', function () {
await fillIn('[data-test-slack-url-input]', 'https://hooks.slack.com/services/1275958430');
await blur('[data-test-slack-url-input]');
await visit('/settings/design');
await visit('/settings');
expect(findAll('.fullscreen-modal').length, 'modal exists').to.equal(1);
// Leave without saving
await click('.fullscreen-modal [data-test-leave-button]');
expect(currentURL(), 'currentURL').to.equal('/settings/design');
expect(currentURL(), 'currentURL').to.equal('/settings');
await visit('/integrations/slack');