From 424758a6d1004bbcf6dcbe504d187df5afc1ca9a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 2 Aug 2016 15:18:25 +0200 Subject: [PATCH] Use HTML content for localstorage test JS logging is disabled by QtWebKit in private browsing mode --- tests/end2end/data/javascript/localstorage.html | 7 ++++--- tests/end2end/features/misc.feature | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/end2end/data/javascript/localstorage.html b/tests/end2end/data/javascript/localstorage.html index 9f8170610..28a11f24f 100644 --- a/tests/end2end/data/javascript/localstorage.html +++ b/tests/end2end/data/javascript/localstorage.html @@ -3,16 +3,17 @@ -

This page checks local storage on load and logs via console.log

+

Local storage status: checking...

diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index 2f87721a6..1519e1867 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -476,7 +476,7 @@ Feature: Various utility commands. Scenario: Private browsing is activated in QtWebKit without restart When I set general -> private-browsing to true And I open data/javascript/localstorage.html - Then "localstorage does not work!" should be logged via javascript + Then the page should contain the plaintext "Local storage status: not working" Scenario: :repeat-command Given I open data/scroll.html