diff options
Diffstat (limited to 'tests/end2end/features/urlmarks.feature')
-rw-r--r-- | tests/end2end/features/urlmarks.feature | 57 |
1 files changed, 53 insertions, 4 deletions
diff --git a/tests/end2end/features/urlmarks.feature b/tests/end2end/features/urlmarks.feature index 00fd14fb6..70962d2d1 100644 --- a/tests/end2end/features/urlmarks.feature +++ b/tests/end2end/features/urlmarks.feature @@ -84,7 +84,24 @@ Feature: quickmarks and bookmarks When I open data/numbers/5.txt And I run :bookmark-add 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 " + 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 @@ -95,18 +112,18 @@ Feature: quickmarks and bookmarks When I open data/numbers/6.txt And I run :bookmark-add And I run :bookmark-del - Then the bookmark file should not contain "http://localhost:*/data/numbers/6.txt " + Then the bookmark file should not contain "http://localhost:*/data/numbers/6.txt *" Scenario: Toggling a bookmark When I open data/numbers/7.txt And I run :bookmark-add And I run :bookmark-add --toggle - Then the bookmark file should not contain "http://localhost:*/data/numbers/7.txt " + Then the bookmark file should not contain "http://localhost:*/data/numbers/7.txt *" Scenario: Loading a bookmark with --delete When I run :bookmark-add http://localhost:(port)/data/numbers/8.txt "eight" And I run :bookmark-load -d http://localhost:(port)/data/numbers/8.txt - Then the bookmark file should not contain "http://localhost:*/data/numbers/8.txt " + Then the bookmark file should not contain "http://localhost:*/data/numbers/8.txt *" ## quickmarks @@ -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,21 @@ 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 + + Scenario: Following a bookmark and going back/forward + 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 + And I wait until data/numbers/1.txt is loaded + And I run :back + And I wait until qute://bookmarks is loaded + And I run :forward + Then data/numbers/1.txt should be loaded |