mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
Fixed tests
refs 142f322338
- updated tests to use `settings.shared_views` in place of `user.accessibility`
This commit is contained in:
parent
142f322338
commit
45a8f6b609
@ -156,16 +156,17 @@ describe('Acceptance: Content', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('can navigate to custom views', async function () {
|
it('can navigate to custom views', async function () {
|
||||||
admin.accessibility = JSON.stringify({
|
this.server.create('setting', {
|
||||||
views: [{
|
type: 'blog',
|
||||||
|
key: 'shared_views',
|
||||||
|
value: JSON.stringify([{
|
||||||
route: 'posts',
|
route: 'posts',
|
||||||
name: 'My posts',
|
name: 'My posts',
|
||||||
filter: {
|
filter: {
|
||||||
author: admin.slug
|
author: admin.slug
|
||||||
}
|
}
|
||||||
}]
|
}])
|
||||||
});
|
});
|
||||||
admin.save();
|
|
||||||
|
|
||||||
await visit('/posts');
|
await visit('/posts');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user