From 65a585a70800723084d25da2b87dfdd577a98645 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Dec 07 2018 15:13:51 +0000 Subject: Add new functions. --- diff --git a/gnome_terminal/features/steps/steps.py b/gnome_terminal/features/steps/steps.py index fe7d7f9..b2f5c0b 100755 --- a/gnome_terminal/features/steps/steps.py +++ b/gnome_terminal/features/steps/steps.py @@ -91,6 +91,15 @@ def is_window_closed(context): windows = context.app.instance.findChild(lambda x: x.roleName == 'frame') assert len(windows) == 1, 'The number of opened windows does not match.' +@step('type a new title') +def type_title(context): + typeText('Newly set title') + +@step('terminal has new title set') +def is_title_set(context): + term = context.app.instance.findChild(lambda x: x.roleName == 'frame') + assert term.name == 'Newly set title', 'The title does not match the expected value.' + @then(u'Overview page is shown') def overview_page_is_shown(context): toggle_btn_checked(context, 'Updates')