Add a @qtwebengine_flaky marker

This commit is contained in:
Florian Bruhin 2016-09-06 21:43:02 +02:00
parent 37b1c26e1c
commit 1106104700
6 changed files with 16 additions and 11 deletions

View File

@ -19,6 +19,7 @@ markers =
qtwebengine_skip: Tests not applicable with QtWebEngine
qtwebkit_skip: Tests not applicable with QtWebKit
qtwebengine_createWindow: Tests using createWindow with QtWebEngine (QTBUG-54419)
qtwebengine_flaky: Tests which are flaky (and currently skipped) with QtWebEngine
qt_log_level_fail = WARNING
qt_log_ignore =
^SpellCheck: .*

View File

@ -146,6 +146,8 @@ def pytest_collection_modifyitems(config, items):
config.webengine),
('qtwebkit_skip', 'Skipped with QtWebKit', pytest.mark.skipif,
not config.webengine),
('qtwebengine_flaky', 'Flaky with QtWebEngine', pytest.mark.skipif,
config.webengine),
]
for item in items:

View File

@ -102,7 +102,7 @@ Feature: Going back and forward.
Then the error "At beginning of history." should be shown
And the message "Still alive!" should be shown
@qtwebengine_skip: flaky for some reason?
@qtwebengine_flaky
Scenario: Going back in a new window
Given I clean up open tabs
When I open data/backforward/1.txt

View File

@ -9,12 +9,13 @@ Feature: Using hints
And I hint with args "links normal" and follow xyz
Then the error "No hint xyz!" should be shown
@qtwebengine_skip: Flaky because scrolling happens async
@qtwebengine_flaky
Scenario: Following a link after scrolling down
When I open data/scroll/simple.html
And I run :hint links normal
And I wait for "hints: *" in the log
And I run :scroll-page 0 1
And I wait until the scroll position changed
And I run :follow-hint a
Then the error "Element position is out of view!" should be shown
@ -227,7 +228,7 @@ Feature: Using hints
Then data/numbers/7.txt should be loaded
# https://github.com/The-Compiler/qutebrowser/issues/576
@qtwebengine_skip: Flaky for some reason
@qtwebengine_flaky
Scenario: Keeping hint filter in rapid mode
When I open data/hints/number.html
And I set hints -> mode to number

View File

@ -190,7 +190,8 @@ Feature: Various utility commands.
# :view-source
@qtwebengine_skip: Flaky due to :view-source being async
# Flaky due to :view-source being async?
@qtwebengine_flaky
Scenario: :view-source
Given I open data/hello.txt
When I run :tab-only
@ -205,7 +206,8 @@ Feature: Various utility commands.
history: []
And the page should contain the html "/* Literal.Number.Integer */"
@qtwebengine_skip: Flaky due to :view-source being async
# Flaky due to :view-source being async?
@qtwebengine_flaky
Scenario: :view-source on source page.
When I open data/hello.txt
And I run :view-source
@ -439,7 +441,7 @@ Feature: Various utility commands.
And the page should contain the plaintext "the-warning-message"
And the page should contain the plaintext "the-info-message"
@qtwebengine_skip: Flaky for some reason?
@qtwebengine_flaky
Scenario: Showing messages of an invalid level
When I run :messages cataclysmic
Then the error "Invalid log level cataclysmic!" should be shown
@ -626,9 +628,10 @@ Feature: Various utility commands.
- data/click_element.html
- data/hello.txt (active)
@qtwebengine_skip: Flaky because scrolling happens async
@qtwebengine_flaky
Scenario: Clicking an element which is out of view
When I open data/scroll/simple.html
And I run :scroll-page 0 1
And I wait until the scroll position changed
And I run :click-element id link
Then the error "Element position is out of view!" should be shown

View File

@ -647,8 +647,7 @@ Feature: Tab management
- url: http://localhost:*/data/numbers/2.txt
- url: http://localhost:*/data/numbers/3.txt
# FIXME:qtwebengine
@qtwebengine_skip: Broken/flaky for some reason?
@qtwebengine_flaky
Scenario: Undo with auto-created last tab
When I open data/hello.txt
And I run :tab-only
@ -660,8 +659,7 @@ Feature: Tab management
Then the following tabs should be open:
- data/hello.txt (active)
# FIXME:qtwebengine
@qtwebengine_skip: Broken/flaky for some reason?
@qtwebengine_flaky
Scenario: Undo with auto-created last tab, with history
When I open data/hello.txt
And I open data/hello2.txt