From db8b913e2d2bf44a9777cbf95f5c88a39d265e81 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/4a53587f3b69392e0e18a5e8ac6909212f8139f2 - updated tests to use `settings.shared_views` in place of `user.accessibility` --- tests/acceptance/content-test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/content-test.js b/tests/acceptance/content-test.js index 5a6f26424..ce4d299e7 100644 --- a/tests/acceptance/content-test.js +++ b/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');