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:10:35 +0100 |
commit | a355b4f02d9a3175f35d8dca4339dd2182aaa9ef (patch) | |
tree | ab7cc87346d46a5c5b3d0559d462e91cb1d8c7e4 | |
parent | 5b6d25a1f8cbfdae88c70bf1161faff95ea6f9d2 (diff) | |
download | qutebrowser-a355b4f02d9a3175f35d8dca4339dd2182aaa9ef.tar.gz qutebrowser-a355b4f02d9a3175f35d8dca4339dd2182aaa9ef.zip |
tests: Use cookies page to check for cookies
Looks like :jseval is somehow special on QtWebKit...
(cherry picked from commit a88a48b516fe6444fef63aa8ea6c380f3566bc68)
-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 |