Files
signoz/tests/integration/fixtures/driver.py
Vibhu Pandey c122bc09b4 feat(tokenizer|sso): add tokenizer for session management and oidc sso support (#9183)
## 📄 Summary

- Instead of relying on JWT for session management, we are adding another token system: opaque. This gives the benefits of expiration and revocation.

- We are now ensuring that emails are regex checked throughout the backend.

- Support has been added for OIDC protocol
2025-10-16 18:00:38 +05:30

22 lines
625 B
Python

import pytest
from selenium import webdriver
@pytest.fixture(name="driver", scope="function")
def driver() -> webdriver.Chrome:
"""
Get a driver for the browser. This is not a fixture, it is a helper function to get a driver for the browser.
"""
options = webdriver.ChromeOptions()
options.add_argument("--headless")
options.add_argument("--incognito")
options.add_argument("--disable-extensions")
options.add_argument("--remote-debugging-port=9222")
options.add_argument("--disable-dev-shm-usage")
_driver = webdriver.Chrome(options=options)
yield _driver
_driver.quit()