diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3368a366d6..9eaf3d9942 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: args: ["--verbose"] - id: check-renovate - repo: https://github.com/compilerla/conventional-pre-commit - rev: v2.1.1 + rev: v3.2.0 hooks: - id: conventional-pre-commit stages: [commit-msg] diff --git a/tests/conftest.py b/tests/conftest.py index b898ae7911..be7ee797eb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -155,20 +155,19 @@ def pytest_runtest_setup(item: Item) -> None: chrome_options.add_argument("allow-file-access-from-files") chrome_options.add_argument("use-fake-device-for-media-stream") chrome_options.add_argument("hide-scrollbars") + chrome_options.add_argument("disable-popup-blocking") + chrome_options.add_argument("disable-notifications") + chrome_options.add_argument("disable-infobars") + chrome_options.add_argument( + "disable-features=IsolateOrigins,site-per-process,VizDisplayCompositor," + "SidePanelPinning" + ) # example of adding specific chrome option based on test file name if item.fspath.purebasename == "workspaces_test": chrome_options.add_argument("use-fake-ui-for-media-stream") # example of adding specific chrome option based on test name if item.name == "test_invalid_login": chrome_options.add_argument(f"user-agent={Constants.AUTOMATION_USER_AGENT}") - chrome_options.add_argument( - "disable-features=IsolateOrigins,site-per-process,VizDisplayCompositor," - "SidePanelPinning" - ) - chrome_options.add_argument("disable-popup-blocking") - chrome_options.add_argument("disable-dev-shm-usage") - chrome_options.add_argument("disable-notifications") - chrome_options.add_argument("disable-infobars") match browser: case "firefox": driver = webdriver.Firefox()