From 480f55bf752cf09a29e4d06a1dc9b8757c100f2f Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Dec 11 2018 11:18:04 +0000 Subject: Add new test. --- diff --git a/gnome_terminal/features/basic_tests.feature b/gnome_terminal/features/basic_tests.feature index d7f8bc2..f911c00 100644 --- a/gnome_terminal/features/basic_tests.feature +++ b/gnome_terminal/features/basic_tests.feature @@ -89,3 +89,9 @@ Feature: Basic tests And enter cat testfile terminal command Then terminal output is TEST FeDoRa + @show_help + Scenario: show application Help + Given Run gnome-terminal + When click on Help button + And click on Content button + Then yelp shows Terminal help page diff --git a/gnome_terminal/features/steps/steps.py b/gnome_terminal/features/steps/steps.py index 71decf0..468e883 100755 --- a/gnome_terminal/features/steps/steps.py +++ b/gnome_terminal/features/steps/steps.py @@ -113,6 +113,13 @@ def term_has_output(context, output): term = context.app.instance.findChild(lambda x: x.roleName == 'terminal') assert output in term.text, 'The output differs from what was expected.' +@then('yelp shows Terminal help page') +def yelp_shows_help(context): + yelp = root.application('yelp') + shows = yelp.findChild(lambda x: x,roleName == 'frame') + assert shows.name == 'Terminal'. 'Yelp does not show the expected content.' + + @then(u'Installed page is shown') def installed_page_is_shown(context): toggle_btn_checked(context, 'All')