Skip to content

Commit 1370d46

Browse files
committed
Scoped analytics request enablement to analytics tests
ref https://linear.app/ghost/issue/BER-3363 Moved synthetic monitoring init into the analytics-only branch in PublicPage.goto so non-analytics tests no longer enable analytics request behavior unnecessarily.
1 parent 13f8c1f commit 1370d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/helpers/pages/public/public-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export class PublicPage extends BasePage {
8181
const testInfo = test.info();
8282
let pageHitPromise = null;
8383
if (testInfo.project.name === 'analytics') {
84+
await this.enableAnalyticsRequests();
8485
pageHitPromise = this.pageHitRequestPromise();
8586
}
86-
await this.enableAnalyticsRequests();
8787
const result = await super.goto(url, options);
8888
if (pageHitPromise) {
8989
await pageHitPromise;

0 commit comments

Comments
 (0)