Skip to content

A2-ai/playwright-testing-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwright test example

This repo contains a zero dependency python server that serves some html and a json endpoint that enables us to test a swath of situations we hit in 'real' software. The goal is to be able to quickly launch synthetic setups to check that we can get playwright to do what we need in a highly controlled environment before moving it into the real setup needed.

Running

For now, we've been able to not use any dependencies and still get a setup that covers the scenarios we need. That may change in the future.

python3 main.py

Will start on localhost:8002 by default (can change port by modifying main.py)

additional notes

  • whoami/index.json allows us to serve "data" from endpoints as if being hit by a real server. This won't work for dynamic data, but will work for endpoints that can be fully mocked. Using index.json pattern will properly return application/json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published