Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalWindSnake committed May 10, 2024
1 parent 6b083e0 commit 6c44fd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
set -x
poetry config virtualenvs.create false
poetry install --all-extras
python -m playwright install --with-deps
python -m playwright install
- run: pytest tests/
6 changes: 5 additions & 1 deletion tests/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def __init__(self, server: ServerManager) -> None:

def open(self, path: str):
# self._page.wait_for_selector("body", timeout=10000)
self._page.goto(f"http://localhost:{PORT}{path}")
self._page.goto(
f"http://localhost:{PORT}{path}",
timeout=5000,
wait_until="domcontentloaded",
)
return self._page

def close(self):
Expand Down

0 comments on commit 6c44fd0

Please sign in to comment.