0
Fork 0
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:
Hannah Wolfe 2022-03-16 12:49:39 +00:00
parent 70d15e077b
commit 4dd2ebc78b
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037

View file

@ -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');
});