1010from .. import (
1111 BROWSERBASE_API_KEY ,
1212 playwright_basic ,
13+ playwright_proxy ,
1314 playwright_captcha ,
1415 playwright_contexts ,
1516 playwright_downloads ,
1819bb = Browserbase (api_key = BROWSERBASE_API_KEY )
1920load_dotenv ()
2021
21- SKIP_CAPTCHA_SOLVING = os .getenv ("SKIP_CAPTCHA_SOLVING " , "true " ).lower () == "true"
22+ CI = os .getenv ("CI " , "false " ).lower () == "true"
2223
2324
2425@pytest .fixture (scope = "session" )
@@ -31,9 +32,8 @@ def test_playwright_basic(playwright: Playwright) -> None:
3132 playwright_basic .run (playwright )
3233
3334
35+ @pytest .mark .skipif (CI , reason = "Flaky and fails on CI" )
3436def test_playwright_captcha (playwright : Playwright ) -> None :
35- if SKIP_CAPTCHA_SOLVING :
36- pytest .skip ("Skipping captcha solving" )
3737 playwright_captcha .run (playwright )
3838
3939
@@ -43,3 +43,31 @@ def test_playwright_contexts(playwright: Playwright) -> None:
4343
4444def test_playwright_downloads (playwright : Playwright ) -> None :
4545 playwright_downloads .run (playwright )
46+
47+
48+ def test_playwright_proxy_enable_via_create_session (playwright : Playwright ) -> None :
49+ playwright_proxy .run_enable_via_create_session (playwright )
50+
51+
52+ def test_playwright_proxy_enable_via_querystring (playwright : Playwright ) -> None :
53+ playwright_proxy .run_enable_via_querystring_with_created_session (playwright )
54+
55+
56+ @pytest .mark .skipif (CI , reason = "Flaky and fails on CI" )
57+ def test_playwright_proxy_geolocation_country (playwright : Playwright ) -> None :
58+ playwright_proxy .run_geolocation_country (playwright )
59+
60+
61+ @pytest .mark .skipif (CI , reason = "Flaky and fails on CI" )
62+ def test_playwright_proxy_geolocation_state (playwright : Playwright ) -> None :
63+ playwright_proxy .run_geolocation_state (playwright )
64+
65+
66+ @pytest .mark .skipif (CI , reason = "Flaky and fails on CI" )
67+ def test_playwright_proxy_geolocation_american_city (playwright : Playwright ) -> None :
68+ playwright_proxy .run_geolocation_american_city (playwright )
69+
70+
71+ @pytest .mark .skipif (CI , reason = "Flaky and fails on CI" )
72+ def test_playwright_proxy_geolocation_non_american_city (playwright : Playwright ) -> None :
73+ playwright_proxy .run_geolocation_non_american_city (playwright )
0 commit comments