Skip to content

Commit

Permalink
Extend integration tests to check if "Keyboard Help" can be dismissed by
Browse files Browse the repository at this point in the history
pressing "ESC".
  • Loading branch information
itsjeyd committed Jan 18, 2016
1 parent 3cde64c commit 76dad17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ def interact_with_keyboard_help(self, scroll_down=250, use_keyboard=False):
self.assertFalse(dialog_modal_overlay.is_displayed())
self.assertFalse(dialog_modal.is_displayed())

if use_keyboard: # Check if "Keyboard Help" dialog can be dismissed using "ESC"
keyboard_help_button.send_keys(Keys.RETURN)

self.assertTrue(dialog_modal_overlay.is_displayed())
self.assertTrue(dialog_modal.is_displayed())

self._page.send_keys(Keys.ESCAPE)

self.assertFalse(dialog_modal_overlay.is_displayed())
self.assertFalse(dialog_modal.is_displayed())

class BasicInteractionTest(InteractionTestBase):
"""
Expand Down

0 comments on commit 76dad17

Please sign in to comment.