Move :repeat-command tests to scroll.feature

This commit is contained in:
Jan Verbeek 2016-07-02 01:42:47 +02:00
parent 9678fd1e09
commit 4172e39045
3 changed files with 20 additions and 25 deletions

View File

@ -464,26 +464,3 @@ Feature: Various utility commands.
And I wait until cookies is loaded
And I open cookies in a new tab
Then the cookie qute-test should be set to 42
Scenario: :repeat-command
Given I open data/scroll.html
When I run :scroll down
And I run :repeat-command
And I run :scroll up
Then the page should be scrolled vertically
Scenario: :repeat-command with count
Given I open data/scroll.html
When I run :scroll down with count 3
And I run :scroll up
And I run :repeat-command with count 2
Then the page should not be scrolled
Scenario: :repeat-command with not-normal command inbetween
Given I open data/scroll.html
When I run :scroll down with count 3
And I run :scroll up
And I run :prompt-accept
And I run :repeat-command with count 2
Then the page should not be scrolled
And the error "prompt-accept: This command is only allowed in prompt/yesno mode." should be shown

View File

@ -241,3 +241,23 @@ Feature: Scrolling
When I open data/hello.txt
And I run :scroll-page 1 1
Then no crash should happen
Scenario: :repeat-command
When I run :scroll down
And I run :repeat-command
And I run :scroll up
Then the page should be scrolled vertically
Scenario: :repeat-command with count
When I run :scroll down with count 3
And I run :scroll up
And I run :repeat-command with count 2
Then the page should not be scrolled
Scenario: :repeat-command with not-normal command inbetween
When I run :scroll down with count 3
And I run :scroll up
And I run :prompt-accept
And I run :repeat-command with count 2
Then the page should not be scrolled
And the error "prompt-accept: This command is only allowed in prompt/yesno mode." should be shown

View File

@ -29,8 +29,6 @@ import qutebrowser
from qutebrowser.utils import docutils
from qutebrowser.browser import pdfjs
from end2end.features.test_scroll_bdd import check_scrolled, check_not_scrolled
bdd.scenarios('misc.feature')