bdd: Use separate files for scroll navigate tests.
hello.txt was already cached from some other tests, so let's make sure a fresh file gets loaded.
This commit is contained in:
parent
7fe9be432a
commit
779df4c08e
1
tests/integration/data/hello3.txt
Normal file
1
tests/integration/data/hello3.txt
Normal file
@ -0,0 +1 @@
|
||||
Hello World 3!
|
@ -208,7 +208,7 @@
|
||||
199
|
||||
This is a very long line so this page can be scrolled horizontally. Did you think this line would end here already? Nah, it does not. But now it will. Or will it? I think it's not long enough yet.
|
||||
</pre>
|
||||
<a href="/data/hello.txt">next</a> link to test the --top-navigate argument for :scroll-page.
|
||||
<a href="/data/hello2.txt">prev</a> link to test the --bottom-navigate argument for :scroll-page.
|
||||
<a href="/data/hello2.txt">next</a> link to test the --top-navigate argument for :scroll-page.
|
||||
<a href="/data/hello3.txt">prev</a> link to test the --bottom-navigate argument for :scroll-page.
|
||||
</body>
|
||||
</html>
|
||||
|
@ -214,11 +214,11 @@ Feature: Scrolling
|
||||
Scenario: :scroll-page with --bottom-navigate
|
||||
When I run :scroll-perc 100
|
||||
And I run :scroll-page --bottom-navigate next 0 1
|
||||
Then data/hello.txt should be loaded
|
||||
Then data/hello2.txt should be loaded
|
||||
|
||||
Scenario: :scroll-page with --top-navigate
|
||||
When I run :scroll-page --top-navigate prev 0 -1
|
||||
Then data/hello2.txt should be loaded
|
||||
Then data/hello3.txt should be loaded
|
||||
|
||||
Scenario: :scroll-page with a very big value
|
||||
When I run :scroll-page 99999999999 99999999999
|
||||
|
Loading…
Reference in New Issue
Block a user