From 45a8f6b609297dd37d6effe0651f1b022e172ca1 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 4 Jun 2020 21:43:54 +0100 Subject: [PATCH] Fixed tests refs https://github.com/TryGhost/Ghost-Admin/commit/142f3223382d67cbf7c7417453f36586d536251a - updated tests to use `settings.shared_views` in place of `user.accessibility` --- ghost/admin/tests/acceptance/content-test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ghost/admin/tests/acceptance/content-test.js b/ghost/admin/tests/acceptance/content-test.js index 5a6f26424b..ce4d299e70 100644 --- a/ghost/admin/tests/acceptance/content-test.js +++ b/ghost/admin/tests/acceptance/content-test.js @@ -156,16 +156,17 @@ describe('Acceptance: Content', function () { }); it('can navigate to custom views', async function () { - admin.accessibility = JSON.stringify({ - views: [{ + this.server.create('setting', { + type: 'blog', + key: 'shared_views', + value: JSON.stringify([{ route: 'posts', name: 'My posts', filter: { author: admin.slug } - }] + }]) }); - admin.save(); await visit('/posts');