diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-12-04 18:07:39 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-12-04 18:07:39 +0100 |
commit | a88a48b516fe6444fef63aa8ea6c380f3566bc68 (patch) | |
tree | 4891adc35745dd548e537b291d8ef5f96ab0cbe6 | |
parent | 5a1e4f19722549b1bd6c357c9a8e733b9218e5aa (diff) | |
download | qutebrowser-a88a48b516fe6444fef63aa8ea6c380f3566bc68.tar.gz qutebrowser-a88a48b516fe6444fef63aa8ea6c380f3566bc68.zip |
tests: Use cookies page to check for cookies
Looks like :jseval is somehow special on QtWebKit...
-rw-r--r-- | tests/end2end/features/private.feature | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/end2end/features/private.feature b/tests/end2end/features/private.feature index f97683140..02f555689 100644 --- a/tests/end2end/features/private.feature +++ b/tests/end2end/features/private.feature @@ -231,9 +231,10 @@ Feature: Using private browsing And I run :close And I set content.cookies.accept to never And I open data/title.html in a private window - And I run :jseval document.cookie = "testcookie" - And I run :jseval "has cookie: " + !!document.cookie - Then "has cookie: false" should be logged + And I open cookies/set?unsuccessful-cookie=1 without waiting in a new tab + And I wait until cookies is loaded + And I open cookies + Then the cookie unsuccessful-cookie should not be set Scenario: Disabling JS after reiniting private profile When I open about:blank in a new window |