mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed local-only e2e test failure
fixes: https://github.com/TryGhost/Team/issues/1424 - This moves the require of the members service after Ghost has been booted normally. - This gives the tests time to properly setup temporary folders before the paths get used. - In turn this prevents issues in the legacy-members tests, which were affected by the Member Service being called too early in this test.
This commit is contained in:
parent
70d15e077b
commit
4dd2ebc78b
1 changed files with 3 additions and 2 deletions
|
@ -1,13 +1,14 @@
|
|||
const membersService = require('../../../core/server/services/members');
|
||||
const {agentProvider, mockManager, fixtureManager} = require('../../utils/e2e-framework');
|
||||
|
||||
let membersAgent;
|
||||
let membersAgent, membersService;
|
||||
|
||||
describe('Members Signin', function () {
|
||||
before(async function () {
|
||||
const agents = await agentProvider.getAgentsForMembers();
|
||||
membersAgent = agents.membersAgent;
|
||||
|
||||
membersService = require('../../../core/server/services/members');
|
||||
|
||||
await fixtureManager.init('members');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue