From 28e6158a044804d691a4448175d0460983e9e16a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 8 Apr 2017 20:38:23 +0200 Subject: [PATCH] Stabilize some tests with Qt 5.9 QtWebEngine --- tests/end2end/features/misc.feature | 8 ++++++-- tests/end2end/features/scroll.feature | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index e3bb13b6f..73950fc41 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -513,11 +513,15 @@ Feature: Various utility commands. Then the error "Invalid log level cataclysmic!" should be shown Scenario: Using qute://log directly - When I open qute://log + When I open qute://log without waiting + # With Qt 5.9, we don't get a loaded message? + And I wait for "Changing title for idx * to 'log'" in the log Then no crash should happen Scenario: Using qute://plainlog directly - When I open qute://plainlog + When I open qute://plainlog without waiting + # With Qt 5.9, we don't get a loaded message? + And I wait for "Changing title for idx * to 'log'" in the log Then no crash should happen Scenario: Using :messages without messages diff --git a/tests/end2end/features/scroll.feature b/tests/end2end/features/scroll.feature index 44f60aa66..4e2643b6d 100644 --- a/tests/end2end/features/scroll.feature +++ b/tests/end2end/features/scroll.feature @@ -39,6 +39,7 @@ Feature: Scrolling And I wait until the scroll position changed to 0/0 Then the page should not be scrolled + @qtwebengine_flaky Scenario: Scrolling left and right with count When I run :scroll-px 10 0 with count 2 And I wait until the scroll position changed to 20/0 @@ -146,7 +147,6 @@ Feature: Scrolling Scenario: Scrolling down with a very big count When I run :scroll down with count 99999999999 - And I wait until the scroll position changed # Make sure it doesn't hang And I run :message-info "Still alive!" Then the message "Still alive!" should be shown