Skip to content

Commit

Permalink
just use chromium browser
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Mar 2, 2024
1 parent 596c6a8 commit 0c19bf3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions backend/app/reporting/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ async def generate_report(
):
logger.info("Generating report")
async with async_playwright() as p:
for browser_type in [p.chromium]:
browser = await browser_type.launch(headless=False)
context = await browser.new_context(ignore_https_errors=True)
page = await context.new_page()
await login_to_page(page, session)
if not await check_login_success(page):
await browser.close()
return
await capture_screenshots(page, request.urls)
browser = await p.chromium.launch(headless=False)
context = await browser.new_context(ignore_https_errors=True)
page = await context.new_page()
await login_to_page(page, session)
if not await check_login_success(page):
await browser.close()
return
await capture_screenshots(page, request.urls)
await browser.close()

0 comments on commit 0c19bf3

Please sign in to comment.