Skip to content

Commit 519148a

Browse files
committed
add browser information in test
1 parent 54bce71 commit 519148a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import arrow
2020
import pytest
2121
from faker import Faker
22-
from playwright.sync_api import APIRequestContext, BrowserContext, Page, expect
22+
from playwright.sync_api import APIRequestContext, Browser, BrowserContext, Page, expect
2323
from playwright.sync_api._generated import Playwright
2424
from pydantic import AnyUrl, TypeAdapter
2525
from pytest_simcore.helpers.faker_factories import DEFAULT_TEST_PASSWORD
@@ -329,6 +329,7 @@ def store_browser_context() -> bool:
329329

330330
@pytest.fixture
331331
def log_in_and_out(
332+
browser: Browser,
332333
page: Page,
333334
product_url: AnyUrl,
334335
user_name: str,
@@ -340,7 +341,7 @@ def log_in_and_out(
340341
) -> Iterator[RestartableWebSocket]:
341342
with log_context(
342343
logging.INFO,
343-
f"Open {product_url=} using {user_name=}/{user_password=}/{auto_register=}",
344+
f"Open {product_url=} using {user_name=}/{user_password=}/{auto_register=} with {browser.browser_type.name}:{browser.version}({browser.browser_type.executable_path})",
344345
):
345346
response = page.goto(f"{product_url}")
346347
assert response

0 commit comments

Comments
 (0)