hints: simplify tests and make them more reliable
This commit is contained in:
parent
748ec043fb
commit
239b7497e9
@ -4,10 +4,7 @@ Feature: Using hints
|
||||
When I open data/hints/link.html
|
||||
And I run :hint links normal
|
||||
And I run :follow-hint a
|
||||
And I wait until data/hello.txt is loaded
|
||||
Then the requests should be:
|
||||
data/hints/link.html
|
||||
data/hello.txt
|
||||
Then data/hello.txt should be loaded
|
||||
|
||||
Scenario: Using :follow-hint outside of hint mode (issue 1105)
|
||||
When I run :follow-hint
|
||||
@ -23,46 +20,24 @@ Feature: Using hints
|
||||
|
||||
Scenario: Following a hint (link containing formatting tags)
|
||||
When I open data/hints/link.html
|
||||
# bypass Qt cache
|
||||
And I run :reload --force
|
||||
And I run :hint links normal
|
||||
And I run :follow-hint s
|
||||
And I wait until data/hello2.txt is loaded
|
||||
Then the requests should be:
|
||||
data/hints/link.html
|
||||
data/hello2.txt
|
||||
Then data/hello2.txt should be loaded
|
||||
|
||||
Scenario: Following a hint (link containing tag with display:block style)
|
||||
When I open data/hints/link.html
|
||||
# bypass Qt cache
|
||||
And I run :reload --force
|
||||
And I run :hint links normal
|
||||
And I run :follow-hint d
|
||||
And I wait until data/hello3.txt is loaded
|
||||
Then the requests should be:
|
||||
data/hints/link.html
|
||||
data/hello3.txt
|
||||
Then data/hello3.txt should be loaded
|
||||
|
||||
Scenario: Following a hint (link containing tag with display:table style)
|
||||
When I open data/hints/link.html
|
||||
# bypass Qt cache
|
||||
And I run :reload --force
|
||||
And I run :hint links normal
|
||||
And I run :follow-hint f
|
||||
And I wait until data/hello4.txt is loaded
|
||||
Then the requests should be:
|
||||
data/hints/link.html
|
||||
data/hello4.txt
|
||||
Then data/hello4.txt should be loaded
|
||||
|
||||
Scenario: Following a link wrapped across multiple lines.
|
||||
When I open data/hints/link.html
|
||||
# bypass Qt cache
|
||||
And I run :reload --force
|
||||
And I run :hint links normal
|
||||
And I run :follow-hint g
|
||||
And I wait until data/hello.txt is loaded
|
||||
# bypass Qt cache
|
||||
And I run :reload --force
|
||||
Then the requests should be:
|
||||
data/hints/link.html
|
||||
data/hello.txt
|
||||
Then data/hello.txt should be loaded
|
||||
|
Loading…
Reference in New Issue
Block a user