From 463a1ea763083f36257bc714107105fc60b10b15 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 4 Oct 2021 16:46:37 +0100 Subject: [PATCH] Fixed Slack integration test refs https://github.com/TryGhost/Admin/commit/63b1e1d38564dc6c7c5aad7e39c07b4e18fcc1b6 - 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 --- ghost/admin/tests/acceptance/settings/slack-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/tests/acceptance/settings/slack-test.js b/ghost/admin/tests/acceptance/settings/slack-test.js index 387e55b120..67843e0999 100644 --- a/ghost/admin/tests/acceptance/settings/slack-test.js +++ b/ghost/admin/tests/acceptance/settings/slack-test.js @@ -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');