Fixed posts Content API test run in isolation

closes https://github.com/TryGhost/Arch/issues/76

- The posts test suite was failing when run in isolation. This was due to "collections" labs flag not being turned on, the events were not going through to collections service correctly
This commit is contained in:
Naz 2023-08-16 15:48:52 +08:00 committed by naz
parent 15143d2961
commit 49a4a60d82

View File

@ -26,6 +26,8 @@ describe('Posts Content API', function () {
let agent; let agent;
before(async function () { before(async function () {
// NOTE: can be removed after collections -> GA
mockManager.mockLabsEnabled('collections');
agent = await agentProvider.getContentAPIAgent(); agent = await agentProvider.getContentAPIAgent();
await fixtureManager.init('owner:post', 'users', 'user:inactive', 'posts', 'tags:extra', 'api_keys', 'newsletters', 'members:newsletters'); await fixtureManager.init('owner:post', 'users', 'user:inactive', 'posts', 'tags:extra', 'api_keys', 'newsletters', 'members:newsletters');
await agent.authenticate(); await agent.authenticate();