Thanks to those who provided clarity in the comments.
From what I can ascertain so far, the correct way to test in this scenario is to do testing on the live site using a CDP client for Python, the most popular of which being Puppeteer.
If anyone can provide more clarity, please feel free.