pytest-bdd 8: Fix indentations

This commit is contained in:
Florian Bruhin 2024-12-05 16:05:59 +01:00
parent f524926216
commit bb462c2602
5 changed files with 86 additions and 86 deletions

View File

@ -13,14 +13,14 @@ Feature: Going back and forward.
And I wait until data/backforward/2.txt is loaded
And I reload
Then the session should look like:
"""
windows:
- tabs:
- history:
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
"""
"""
windows:
- tabs:
- history:
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
"""
# https://travis-ci.org/qutebrowser/qutebrowser/jobs/157941720
@qtwebengine_flaky
@ -31,19 +31,19 @@ Feature: Going back and forward.
And I run :back -t
And I wait until data/backforward/1.txt is loaded
Then the session should look like:
"""
windows:
- tabs:
- history:
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
- active: true
history:
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
"""
"""
windows:
- tabs:
- history:
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
- active: true
history:
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
"""
Scenario: Going back in a new tab without history
Given I open data/backforward/1.txt
@ -51,14 +51,14 @@ Feature: Going back and forward.
And I run :back -t
Then the error "At beginning of history." should be shown
Then the session should look like:
"""
windows:
- tabs:
- active: true
history:
- active: true
url: http://localhost:*/data/backforward/1.txt
"""
"""
windows:
- tabs:
- active: true
history:
- active: true
url: http://localhost:*/data/backforward/1.txt
"""
Scenario: Going back in a new background tab
Given I open data/backforward/1.txt
@ -67,19 +67,19 @@ Feature: Going back and forward.
And I run :back -b
And I wait until data/backforward/1.txt is loaded
Then the session should look like:
"""
windows:
- tabs:
- active: true
history:
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
- history:
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
"""
"""
windows:
- tabs:
- active: true
history:
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
- history:
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
"""
@flaky
Scenario: Going back with count.
@ -91,15 +91,15 @@ Feature: Going back and forward.
And I wait until data/backforward/1.txt is loaded
And I reload
Then the session should look like:
"""
windows:
- tabs:
- history:
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
- url: http://localhost:*/data/backforward/3.txt
"""
"""
windows:
- tabs:
- history:
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
- url: http://localhost:*/data/backforward/3.txt
"""
Scenario: Going back too much with count.
Given I open data/backforward/1.txt
@ -124,23 +124,23 @@ Feature: Going back and forward.
And I run :back -w
And I wait until data/backforward/1.txt is loaded
Then the session should look like:
"""
windows:
- tabs:
- active: true
history:
- url: about:blank
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
- tabs:
- active: true
history:
- url: about:blank
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
"""
"""
windows:
- tabs:
- active: true
history:
- url: about:blank
- url: http://localhost:*/data/backforward/1.txt
- active: true
url: http://localhost:*/data/backforward/2.txt
- tabs:
- active: true
history:
- url: about:blank
- active: true
url: http://localhost:*/data/backforward/1.txt
- url: http://localhost:*/data/backforward/2.txt
"""
Scenario: Going back without history
Given I open data/backforward/1.txt

View File

@ -91,10 +91,10 @@ Feature: Using completion
And I run :tab-move 1
And I run :tab-select hello2.txt
Then the following tabs should be open:
"""
"""
- data/hello2.txt (active)
- data/hello.txt
"""
"""
Scenario: Space updates completion model after selecting full command
When I run :cmd-set-text :set

View File

@ -15,10 +15,10 @@ Feature: Opening external editors
And I run :edit-url -t
Then data/numbers/2.txt should be loaded
And the following tabs should be open:
"""
"""
- data/numbers/1.txt
- data/numbers/2.txt (active)
"""
"""
Scenario: Editing a URL with -rt
When I set tabs.new_position.related to prev
@ -28,10 +28,10 @@ Feature: Opening external editors
And I run :edit-url -rt
Then data/numbers/2.txt should be loaded
And the following tabs should be open:
"""
"""
- data/numbers/2.txt (active)
- data/numbers/1.txt
"""
"""
Scenario: Editing a URL with -b
When I run :tab-only
@ -40,10 +40,10 @@ Feature: Opening external editors
And I run :edit-url -b
Then data/numbers/2.txt should be loaded
And the following tabs should be open:
"""
"""
- data/numbers/1.txt (active)
- data/numbers/2.txt
"""
"""
Scenario: Editing a URL with -w
When I run :window-only
@ -53,7 +53,7 @@ Feature: Opening external editors
And I run :edit-url -w
Then data/numbers/2.txt should be loaded
And the session should look like:
"""
"""
windows:
- tabs:
- active: true
@ -65,7 +65,7 @@ Feature: Opening external editors
history:
- active: true
url: http://localhost:*/data/numbers/2.txt
"""
"""
Scenario: Editing a URL with -p
When I open data/numbers/1.txt in a new tab
@ -75,7 +75,7 @@ Feature: Opening external editors
And I run :edit-url -p
Then data/numbers/2.txt should be loaded
And the session should look like:
"""
"""
windows:
- tabs:
- active: true
@ -88,7 +88,7 @@ Feature: Opening external editors
- active: true
url: http://localhost:*/data/numbers/2.txt
private: true
"""
"""
Scenario: Editing a URL with -t and -b
When I run :edit-url -t -b

View File

@ -23,10 +23,10 @@ Feature: Page history
When I open redirect-to?url=data/title.html without waiting
And I wait until data/title.html is loaded
Then the history should contain:
"""
"""
r http://localhost:(port)/redirect-to?url=data/title.html Test title
http://localhost:(port)/data/title.html Test title
"""
"""
Scenario: History item with spaces in URL
When I open data/title with spaces.html
@ -76,10 +76,10 @@ Feature: Page history
When I open data/hints/html/simple.html
And I hint with args "--add-history links yank" and follow a
Then the history should contain:
"""
"""
http://localhost:(port)/data/hints/html/simple.html Simple link
http://localhost:(port)/data/hello.txt
"""
"""
@flaky
Scenario: Listing history

View File

@ -143,10 +143,10 @@ Feature: Miscellaneous utility commands exposed to the user.
And I run :hint-follow a
And I wait until data/hello.txt is loaded
Then the following tabs should be open:
"""
"""
- data/hints/link_blank.html
- data/hello.txt (active)
"""
"""
## :debug-log-capacity