Only run geolocation tests on CI
Trying to get the device location while running the tests can trigger all kind of funny effects. Since we can't easily mock the GPS responses, we only run those on the CI where we at least have some predictable setup. Fixes #1297.
This commit is contained in:
parent
513e4d5236
commit
f64916b516
@ -16,6 +16,7 @@ markers =
|
||||
pyqt531_or_newer: Needs PyQt 5.3.1 or newer.
|
||||
xfail_norun: xfail the test with out running it
|
||||
flaky: Tests which are flaky and should be rerun
|
||||
ci: Tests which should only run on CI.
|
||||
qt_log_level_fail = WARNING
|
||||
qt_log_ignore =
|
||||
^SpellCheck: .*
|
||||
|
@ -57,6 +57,7 @@ def _apply_platform_markers(item):
|
||||
('skip', True, "Always skipped."),
|
||||
('pyqt531_or_newer', PYQT_VERSION < 0x050301,
|
||||
"Needs PyQt 5.3.1 or newer"),
|
||||
('ci', 'CI' not in os.environ, "Only runs on CI."),
|
||||
]
|
||||
|
||||
for searched_marker, condition, default_reason in markers:
|
||||
|
@ -122,12 +122,14 @@ Feature: Prompts
|
||||
And I click the button
|
||||
Then the javascript message "geolocation permission denied" should be logged
|
||||
|
||||
@ci
|
||||
Scenario: Always accepting geolocation
|
||||
When I set content -> geolocation to true
|
||||
And I open data/prompt/geolocation.html in a new tab
|
||||
And I click the button
|
||||
Then the javascript message "geolocation permission denied" should not be logged
|
||||
|
||||
@ci
|
||||
Scenario: geolocation with ask -> true
|
||||
When I set content -> geolocation to ask
|
||||
And I open data/prompt/geolocation.html in a new tab
|
||||
|
Loading…
Reference in New Issue
Block a user