Skip to content

Commit

Permalink
Fix analytics playwright tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Oct 5, 2023
1 parent a108fdc commit e3f26b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/test/playwright/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function expectEventPayloadToMatch<T extends EventName>(

export const collectAnalyticsEvents = (context: BrowserContext) => {
const sentAnalyticsEvents: AnalyticEventResponses = []
context.route("/api/event", (route, request) => {
context.route(/\/api\/event$/, (route, request) => {
const postData = request.postData()
if (postData) {
const parsedData = JSON.parse(postData)
Expand Down

0 comments on commit e3f26b6

Please sign in to comment.