diff options
Diffstat (limited to 'tests/end2end/features/test_misc_bdd.py')
-rw-r--r-- | tests/end2end/features/test_misc_bdd.py | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/tests/end2end/features/test_misc_bdd.py b/tests/end2end/features/test_misc_bdd.py index 0385c6bd5..570afee64 100644 --- a/tests/end2end/features/test_misc_bdd.py +++ b/tests/end2end/features/test_misc_bdd.py @@ -1,19 +1,6 @@ -# Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> +# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # -# This file is part of qutebrowser. -# -# qutebrowser is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# qutebrowser is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. +# SPDX-License-Identifier: GPL-3.0-or-later import pytest_bdd as bdd bdd.scenarios('misc.feature') @@ -29,6 +16,11 @@ def load_iframe(quteproc, server, ssl_server): msg.expected = True +@bdd.when("I turn on scroll logging") +def turn_on_scroll_logging(quteproc): + quteproc.turn_on_scroll_logging(no_scroll_filtering=True) + + @bdd.then(bdd.parsers.parse('the PDF {filename} should exist in the tmpdir')) def pdf_exists(quteproc, tmpdir, filename): path = tmpdir / filename |