mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 13:22:39 +03:00
Fixed members test for admin
no issue
This commit is contained in:
parent
083b1e4a5a
commit
66d84790a4
@ -29,13 +29,13 @@ describe('Acceptance: Members', function () {
|
|||||||
.to.not.exist;
|
.to.not.exist;
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('as admin', function () {
|
describe('as owner', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.server.loadFixtures('configs');
|
this.server.loadFixtures('configs');
|
||||||
let config = this.server.schema.configs.first();
|
let config = this.server.schema.configs.first();
|
||||||
config.update({enableDeveloperExperiments: true});
|
config.update({enableDeveloperExperiments: true});
|
||||||
|
|
||||||
let role = this.server.create('role', {name: 'Administrator'});
|
let role = this.server.create('role', {name: 'Owner'});
|
||||||
this.server.create('user', {roles: [role]});
|
this.server.create('user', {roles: [role]});
|
||||||
|
|
||||||
return await authenticateSession();
|
return await authenticateSession();
|
||||||
|
Loading…
Reference in New Issue
Block a user