summaryrefslogtreecommitdiff
path: root/tests/end2end/features/urlmarks.feature
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/features/urlmarks.feature')
-rw-r--r--tests/end2end/features/urlmarks.feature38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/end2end/features/urlmarks.feature b/tests/end2end/features/urlmarks.feature
index 00fd14fb6..1c97ec322 100644
--- a/tests/end2end/features/urlmarks.feature
+++ b/tests/end2end/features/urlmarks.feature
@@ -86,6 +86,23 @@ Feature: quickmarks and bookmarks
And I run :bookmark-del http://localhost:(port)/data/numbers/5.txt
Then the bookmark file should not contain "http://localhost:*/data/numbers/5.txt "
+ Scenario: Deleting all bookmarks
+ When I open data/numbers/1.txt
+ And I run :bookmark-add
+ And I open data/numbers/2.txt
+ And I run :bookmark-add
+ And I run :bookmark-del --all
+ Then the message "Bookmarks cleared." should be shown
+ And the bookmark file should not contain "http://localhost:*/data/numbers/1.txt"
+ And the bookmark file should not contain "http://localhost:*/data/numbers/2.txt"
+
+ Scenario: Deleting all bookmarks with url
+ When I open data/numbers/1.txt
+ And I run :bookmark-add
+ And I run :bookmark-del --all https://example.org
+ Then the error "Cannot specify url and --all" should be shown
+ And the bookmark file should contain "http://localhost:*/data/numbers/1.txt"
+
Scenario: Deleting the current page's bookmark if it doesn't exist
When I open data/hello.txt
And I run :bookmark-del
@@ -210,6 +227,20 @@ Feature: quickmarks and bookmarks
And I run :quickmark-del eighteen
Then the quickmark file should not contain "eighteen http://localhost:*/data/numbers/18.txt "
+ Scenario: Deleting all quickmarks
+ When I run :quickmark-add http://localhost:(port)/data/numbers/1.txt one
+ When I run :quickmark-add http://localhost:(port)/data/numbers/2.txt two
+ And I run :quickmark-del --all
+ Then the message "Quickmarks cleared." should be shown
+ And the quickmark file should not contain "one http://localhost:*/data/numbers/1.txt"
+ And the quickmark file should not contain "two http://localhost:*/data/numbers/2.txt"
+
+ Scenario: Deleting all quickmarks with name
+ When I run :quickmark-add http://localhost:(port)/data/numbers/1.txt one
+ And I run :quickmark-del --all invalid
+ Then the error "Cannot specify name and --all" should be shown
+ And the quickmark file should contain "one http://localhost:*/data/numbers/1.txt"
+
Scenario: Deleting the current page's quickmark if it has none
When I open data/hello.txt
And I run :quickmark-del
@@ -233,3 +264,10 @@ Feature: quickmarks and bookmarks
And I run :bookmark-add
And I open qute://bookmarks
Then the page should contain the plaintext "Test title"
+
+ Scenario: Following a bookmark
+ When I open data/numbers/1.txt in a new tab
+ And I run :bookmark-add
+ And I open qute://bookmarks
+ And I hint with args "links current" and follow a
+ Then data/numbers/1.txt should be loaded