From bb462c2602bf1dedc5f1e1dd6adc3076d5cce350 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 5 Dec 2024 16:05:59 +0100 Subject: [PATCH] pytest-bdd 8: Fix indentations --- tests/end2end/features/backforward.feature | 136 ++++++++++----------- tests/end2end/features/completion.feature | 4 +- tests/end2end/features/editor.feature | 20 +-- tests/end2end/features/history.feature | 8 +- tests/end2end/features/utilcmds.feature | 4 +- 5 files changed, 86 insertions(+), 86 deletions(-) diff --git a/tests/end2end/features/backforward.feature b/tests/end2end/features/backforward.feature index d6699fbff..0ab72feda 100644 --- a/tests/end2end/features/backforward.feature +++ b/tests/end2end/features/backforward.feature @@ -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 diff --git a/tests/end2end/features/completion.feature b/tests/end2end/features/completion.feature index 5e6b47dce..1d54b131a 100644 --- a/tests/end2end/features/completion.feature +++ b/tests/end2end/features/completion.feature @@ -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 diff --git a/tests/end2end/features/editor.feature b/tests/end2end/features/editor.feature index 8cc9e1550..1cc21c73c 100644 --- a/tests/end2end/features/editor.feature +++ b/tests/end2end/features/editor.feature @@ -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 diff --git a/tests/end2end/features/history.feature b/tests/end2end/features/history.feature index d965e3e81..f5e5caace 100644 --- a/tests/end2end/features/history.feature +++ b/tests/end2end/features/history.feature @@ -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 diff --git a/tests/end2end/features/utilcmds.feature b/tests/end2end/features/utilcmds.feature index 3e6ac2afb..7a69289fe 100644 --- a/tests/end2end/features/utilcmds.feature +++ b/tests/end2end/features/utilcmds.feature @@ -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