Skip to content

Commit 51625fb

Browse files
committed
skip non-headless firefox testing in CI workflows
1 parent 670bf57 commit 51625fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# import os
22
# import shutil
33
import contextlib
4+
import os
45
from typing import TYPE_CHECKING, cast
56

67
import pytest
@@ -36,7 +37,7 @@ def example_html() -> str:
3637
"chrome",
3738
# "chrome-custom-path",
3839
"firefox-headless",
39-
"firefox",
40+
pytest.param("firefox", marks=pytest.mark.skipif(os.getenv("CI") == "true", reason="Non-headless Firefox unreliable in CI")),
4041
]
4142
)
4243
def session(request): # noqa: ANN001, ANN201

0 commit comments

Comments
 (0)