From 040d956f28c88031575d33a5273cb880c01249e3 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Dec 11 2018 14:33:44 +0000 Subject: Add new test. --- diff --git a/gnome_terminal/features/basic_tests.feature b/gnome_terminal/features/basic_tests.feature index beda7d3..8cedce0 100644 --- a/gnome_terminal/features/basic_tests.feature +++ b/gnome_terminal/features/basic_tests.feature @@ -102,3 +102,10 @@ Feature: Basic tests When click on Help button And click on About button Then the About window appears + + @toggle_menu_bar + Scenario: toggle the visibility of the menu bar + Given Run gnome-terminal + When click on View button + And click on Show Menubar button + Then the menu bar disappears diff --git a/gnome_terminal/features/steps/.steps.py.swp b/gnome_terminal/features/steps/.steps.py.swp index 8bbfee5..402fbb2 100644 Binary files a/gnome_terminal/features/steps/.steps.py.swp and b/gnome_terminal/features/steps/.steps.py.swp differ diff --git a/gnome_terminal/features/steps/steps.py b/gnome_terminal/features/steps/steps.py index 07c80a2..d995767 100755 --- a/gnome_terminal/features/steps/steps.py +++ b/gnome_terminal/features/steps/steps.py @@ -130,6 +130,10 @@ def window_appears(context, window): sleep(2) assert dialog.name == rName, 'No window with that name was opened.' +@then('the menu bar disappears') +def menu_bar_invisible(context): + mBar = context.app.instance.findChild(lambda x: x.roleName == 'menu bar') + assert mBar.visible == False, 'The menu bar has not been hidden.' @then(u'Installed page is shown') def installed_page_is_shown(context):