PageManager is null in AemContext AEM mocks

Description

PageManager is null in AemContext AEM mocks and this line breaks because of that:

context.create().page(PATH_TO_TEST_PAGE, PATH_TO_TEST_TEMPLATE, pageProps);

Here is how we fetch the context:

https://pastebin.com/1hEs4UzA

It fails only when running mvn clean install, when running just one test class locally using Intelij it succeeds, so the problem is only when multiple test classes are being runned.

Environment

None

Status

Assignee

Unassigned

Reporter

Marijan Hranj

Labels

None

Components

Priority

Blocker
Configure