blob: a65e4f5d17aa60cbd4feed747800a5f9f788b1c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Using :navigate
Scenario: :navigate with invalid argument
When I run :navigate foo
Then the error "where: Invalid value foo - expected one of: prev, next, up, increment, decrement" should be shown
# up
Scenario: Navigating up
When I open data/navigate/sub
And I run :navigate up
Then data/navigate should be loaded
Scenario: Navigating up with a query
When I open data/navigate/sub?foo=bar
And I run :navigate up
Then data/navigate should be loaded
Scenario: Navigating up by count
When I open data/navigate/sub/index.html
And I run :navigate up with count 2
Then data/navigate should be loaded
Scenario: Navigating up in qute://help/
When I open qute://help/commands.html
And I run :navigate up
Then qute://help/ should be loaded
# prev/next
Scenario: Navigating to previous page
When I open data/navigate in a new tab
And I run :navigate prev
Then data/navigate/prev.html should be loaded
Scenario: Navigating to next page
When I open data/navigate
And I run :navigate next
Then data/navigate/next.html should be loaded
Scenario: Navigating to previous page without links
When I open data/numbers/1.txt
And I run :navigate prev
Then the error "No prev links found!" should be shown
Scenario: Navigating to next page without links
When I open data/numbers/1.txt
And I run :navigate next
Then the error "No forward links found!" should be shown
Scenario: Navigating to next page to a fragment
When I open data/navigate#fragment
And I run :navigate next
Then data/navigate/next.html should be loaded
Scenario: Navigating to previous page with rel
When I open data/navigate/rel.html
And I run :navigate prev
Then data/navigate/prev.html should be loaded
Scenario: Navigating to next page with rel
When I open data/navigate/rel.html
And I run :navigate next
Then data/navigate/next.html should be loaded
Scenario: Navigating to previous page with rel nofollow
When I open data/navigate/rel_nofollow.html
And I run :navigate prev
Then data/navigate/prev.html should be loaded
Scenario: Navigating to next page with rel nofollow
When I open data/navigate/rel_nofollow.html
And I run :navigate next
Then data/navigate/next.html should be loaded
# increment/decrement
Scenario: Incrementing number in URL
When I open data/numbers/1.txt
And I run :navigate increment
Then data/numbers/2.txt should be loaded
Scenario: Decrementing number in URL
When I open data/numbers/4.txt
And I run :navigate decrement
Then data/numbers/3.txt should be loaded
Scenario: Decrementing with no number in URL
When I open data/navigate
And I run :navigate decrement
Then the error "No number found in URL!" should be shown
Scenario: Incrementing with no number in URL
When I open data/navigate
And I run :navigate increment
Then the error "No number found in URL!" should be shown
Scenario: Incrementing number in URL by count
When I open data/numbers/3.txt
And I run :navigate increment with count 3
Then data/numbers/6.txt should be loaded
Scenario: Decrementing number in URL by count
When I open data/numbers/8.txt
And I run :navigate decrement with count 5
Then data/numbers/3.txt should be loaded
Scenario: Setting url.incdec_segments
When I set url.incdec_segments to [anchor]
And I open data/numbers/1.txt
And I run :navigate increment
Then the error "No number found in URL!" should be shown
@qtwebengine_todo: Doesn't find any elements
Scenario: Navigating multiline links
When I open data/navigate/multilinelinks.html
And I run :navigate next
Then data/numbers/5.txt should be loaded
|