Skip to content

Commit

Permalink
Add assert, fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Eriksson committed Mar 11, 2022
1 parent 4154d14 commit 68c17cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ public void modalDialogOpenInitially_dialogClosed_shortcutsInViewTrigger() {
// shortcuts on view should not trigger while dialog is open
pressShortcutKey(
$(NativeButtonElement.class).id(ModalDialogView.UI_BUTTON));
Assert.assertTrue("No event should be logged",
eventLog.$(DivElement.class).all().isEmpty());

closeDialog();

// shortcuts on view should not trigger when dialog has been closed
// shortcuts on view should trigger when dialog has been closed
pressShortcutKey(
$(NativeButtonElement.class).id(ModalDialogView.UI_BUTTON));
validateLatestShortcutEvent(0, ModalDialogView.UI_BUTTON);
Expand Down

0 comments on commit 68c17cd

Please sign in to comment.