- Started working on test. (This is currently broken, it asks "Are you sure you want to re-run wiz message"), wanted to see if it does it with jenkins.

This commit is contained in:
suutari-olli 2016-04-16 18:13:19 +03:00
parent 49dca3a0f9
commit 12b1d64b6a

View File

@ -189,3 +189,16 @@ class TestMainWindow(TestCase, TestMixin):
# THEN: The media manager dock is made visible
self.assertEqual(0, mocked_media_manager_dock.setVisible.call_count)
mocked_widget.on_focus.assert_called_with()
def on_first_time_wizard_clicked_projectors_visibility_true_test(self):
"""
Test that the focus is set on the widget when the search shortcut is triggered
"""
# GIVEN: A build main window set up for testing
# WHEN: The search shortcut is triggered
self.main_window.on_first_time_wizard_clicked()
# THEN: The media manager dock is made visible