Add a Playwright fixture that allows retrieving POST request parameters #1992
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: frontend
Related to the Nuxt frontend
Problem
Currently, we use the following code to extract the Analytics payloads from POST requests in Playwright tests:
This code is repeated in every test that tests analytics.
Description
Abstract this out into a utility or custom Playwright fixture that provides this more generally (like a list of all events that get sent that can be asserted against).
Alternatives
Additional context
Based on quote from @sarayourfriend 's comment
The text was updated successfully, but these errors were encountered: