blob: ac896ea33f29e906355a954f122816932764d7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Copyright 2016-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
import pytest_bdd as bdd
bdd.scenarios('invoke.feature')
@bdd.when(bdd.parsers.parse("I spawn a new window"))
def invoke_with(quteproc):
"""Spawn a new window via IPC call."""
quteproc.log_summary("Create a new window")
quteproc.send_ipc([], target_arg='window')
quteproc.wait_for(category='init', module='app',
function='_open_startpage',
message='Opening start pages')
|