Skip to content

Commit

Permalink
WIP: inspect individual page requests
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 21, 2025
1 parent c8d8ba7 commit 5336752
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/performance/web_simulation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@


class UserActionsTestCase(BrowserTestCase):
# log_tasks = False

@task
@pw
async def visit_cases_search_page(self, page):
await page.context.add_cookies([self.session_cookie])
page.on("request", lambda request: print(request.url))

await page.goto("/cases/search/")
await page.wait_for_load_state()
async with event(self, "/cases/search/"):
await page.goto("/cases/search/")
await page.wait_for_load_state()

html = await page.content()
print(html)
raise StopUser()

0 comments on commit 5336752

Please sign in to comment.