qutebrowser/tests/integration/features/zoom.feature
Florian Bruhin 535bcab310 bdd tests: Restart qutebrowser once per module.
This should be a good compromise between reproducibility and speed.
2015-11-03 07:00:46 +01:00

43 lines
1.1 KiB
Gherkin

Feature: Zooming in and out
Background:
Given I open data/hello.txt
And I run :tab-only
Scenario: Zooming in
When I run :zoom-in
Then the message "Zoom level: 110%" should be shown.
And the session should look like:
windows:
- tabs:
- history:
- zoom: 1.1
Scenario: Zooming out
When I run :zoom-out
Then the message "Zoom level: 90%" should be shown.
And the session should look like:
windows:
- tabs:
- history:
- zoom: 0.9
Scenario: Setting zoom
When I run :zoom 50
Then the message "Zoom level: 50%" should be shown.
And the session should look like:
windows:
- tabs:
- history:
- zoom: 0.5
Scenario: Resetting zoom
When I run :zoom 50
And I run :zoom
Then the message "Zoom level: 100%" should be shown.
And the session should look like:
windows:
- tabs:
- history:
- zoom: 1.0