Program: 135268
Project: 135268
Buggy source:
@Test public void keyboardShortcutsTest(){
  UI.events.registerEvent((IssueSelectedEventHandler)e -> selectedIssueId=e.id);
  UI.events.registerEvent((UIComponentFocusEventHandler)e -> uiComponentFocusEventType=e.eventType);
  UI.events.registerEvent((PanelClickedEventHandler)e -> panelIndex=e.panelIndex);
  clearSelectedIssueId();
  clearUiComponentFocusEventType();
  clearPanelIndex();
  assertEquals(false,stage.getMinWidth() > 500);
  press(MAXIMIZE_WINDOW);
  assertEquals(true,stage.getMinWidth() > 500);
  press(DEFAULT_SIZE_WINDOW);
  assertEquals(false,stage.getMinWidth() > 500);
  press(JUMP_TO_FIRST_ISSUE);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  press(JUMP_TO_FILTER_BOX);
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  press(JUMP_TO_FIRST_ISSUE);
  press(JUMP_TO_FILTER_BOX);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(1));
  PlatformEx.waitOnFxThread();
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  press(JUMP_TO_FILTER_BOX);
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(2));
  PlatformEx.waitOnFxThread();
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(3));
  PlatformEx.waitOnFxThread();
  assertEquals(8,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(4));
  PlatformEx.waitOnFxThread();
  assertEquals(7,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(5));
  PlatformEx.waitOnFxThread();
  assertEquals(6,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(6));
  PlatformEx.waitOnFxThread();
  assertEquals(5,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(7));
  PlatformEx.waitOnFxThread();
  assertEquals(4,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(8));
  PlatformEx.waitOnFxThread();
  assertEquals(3,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(9));
  PlatformEx.waitOnFxThread();
  assertEquals(2,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.END);
  assertEquals(1,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.HOME);
  sleep(1000);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(8,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  press(CREATE_RIGHT_PANEL);
  press(JUMP_TO_FIRST_ISSUE);
  push(getKeyCode("String_Node_Str"));
  assertEquals(0,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(0,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,panelIndex);
  clearPanelIndex();
  ComboBox<String> repoSelectorComboBox=find("String_Node_Str");
  doubleClick(repoSelectorComboBox);
  assertEquals(true,repoSelectorComboBox.isFocused());
  press(KeyCode.ESCAPE).release(KeyCode.ESCAPE);
  assertEquals(false,repoSelectorComboBox.isFocused());
  clearUiComponentFocusEventType();
  assertEquals(1,repoSelectorComboBox.getItems().size());
  doubleClick(repoSelectorComboBox);
  doubleClick();
  type("String_Node_Str");
  push(KeyCode.ENTER);
  PlatformEx.waitOnFxThread();
  assertEquals(2,repoSelectorComboBox.getItems().size());
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  doubleClick(repoSelectorComboBox);
  pushKeys(SWITCH_DEFAULT_REPO);
  waitUntilNodeAppears("String_Node_Str");
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  click("String_Node_Str");
  press(SWITCH_DEFAULT_REPO);
  PlatformEx.waitOnFxThread();
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  press(JUMP_TO_NTH_ISSUE_KEYS.get(1));
  press(SWITCH_DEFAULT_REPO);
  PlatformEx.waitOnFxThread();
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  ListPanel issuePanel=find("String_Node_Str");
  push(KeyCode.HOME);
  int issueIdBeforeMark=selectedIssueId;
  int issueIdExpected=issueIdBeforeMark - 1;
  push(getKeyCode("String_Node_Str"));
  PlatformEx.waitOnFxThread();
  assertEquals(issueIdExpected,selectedIssueId);
  push(getKeyCode("String_Node_Str"));
  assertEquals(true,issuePanel.getSelectedIssue().isPresent());
  assertEquals(true,issuePanel.getSelectedIssue().get().isCurrentlyRead());
  push(KeyCode.END);
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,selectedIssueId);
  assertEquals(true,issuePanel.getSelectedIssue().isPresent());
  assertEquals(true,issuePanel.getSelectedIssue().get().isCurrentlyRead());
  push(getKeyCode("String_Node_Str"));
  assertEquals(true,issuePanel.getSelectedIssue().isPresent());
  assertEquals(false,issuePanel.getSelectedIssue().get().isCurrentlyRead());
  clearSelectedIssueId();
  click("String_Node_Str");
  type("String_Node_Str");
  push(KeyCode.ENTER);
  press(JUMP_TO_FIRST_ISSUE);
  push(getKeyCode("String_Node_Str"));
  assertEquals(5,selectedIssueId);
  press(MINIMIZE_WINDOW);
  assertEquals(true,stage.isIconified());
}

Fixed version (ground truth):
@Test public void keyboardShortcutsTest(){
  UI.events.registerEvent((IssueSelectedEventHandler)e -> selectedIssueId=e.id);
  UI.events.registerEvent((UIComponentFocusEventHandler)e -> uiComponentFocusEventType=e.eventType);
  UI.events.registerEvent((PanelClickedEventHandler)e -> panelIndex=e.panelIndex);
  clearSelectedIssueId();
  clearUiComponentFocusEventType();
  clearPanelIndex();
  assertEquals(false,stage.getWidth() > 500);
  press(MAXIMIZE_WINDOW);
  assertEquals(true,stage.getWidth() > 500);
  press(DEFAULT_SIZE_WINDOW);
  assertEquals(false,stage.getWidth() > 500);
  press(JUMP_TO_FIRST_ISSUE);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  press(JUMP_TO_FILTER_BOX);
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  press(JUMP_TO_FIRST_ISSUE);
  press(JUMP_TO_FILTER_BOX);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(1));
  PlatformEx.waitOnFxThread();
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  press(JUMP_TO_FILTER_BOX);
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(2));
  PlatformEx.waitOnFxThread();
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(3));
  PlatformEx.waitOnFxThread();
  assertEquals(8,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(4));
  PlatformEx.waitOnFxThread();
  assertEquals(7,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(5));
  PlatformEx.waitOnFxThread();
  assertEquals(6,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(6));
  PlatformEx.waitOnFxThread();
  assertEquals(5,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(7));
  PlatformEx.waitOnFxThread();
  assertEquals(4,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(8));
  PlatformEx.waitOnFxThread();
  assertEquals(3,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(JUMP_TO_NTH_ISSUE_KEYS.get(9));
  PlatformEx.waitOnFxThread();
  assertEquals(2,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.END);
  assertEquals(1,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.HOME);
  sleep(1000);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(8,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  press(CREATE_RIGHT_PANEL);
  press(JUMP_TO_FIRST_ISSUE);
  push(getKeyCode("String_Node_Str"));
  assertEquals(0,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(0,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,panelIndex);
  clearPanelIndex();
  ComboBox<String> repoSelectorComboBox=find("String_Node_Str");
  doubleClick(repoSelectorComboBox);
  assertEquals(true,repoSelectorComboBox.isFocused());
  press(KeyCode.ESCAPE).release(KeyCode.ESCAPE);
  assertEquals(false,repoSelectorComboBox.isFocused());
  clearUiComponentFocusEventType();
  assertEquals(1,repoSelectorComboBox.getItems().size());
  doubleClick(repoSelectorComboBox);
  doubleClick();
  type("String_Node_Str");
  push(KeyCode.ENTER);
  PlatformEx.waitOnFxThread();
  assertEquals(2,repoSelectorComboBox.getItems().size());
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  doubleClick(repoSelectorComboBox);
  pushKeys(SWITCH_DEFAULT_REPO);
  waitUntilNodeAppears("String_Node_Str");
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  click("String_Node_Str");
  press(SWITCH_DEFAULT_REPO);
  PlatformEx.waitOnFxThread();
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  press(JUMP_TO_NTH_ISSUE_KEYS.get(1));
  press(SWITCH_DEFAULT_REPO);
  PlatformEx.waitOnFxThread();
  assertEquals(repoSelectorComboBox.getValue(),"String_Node_Str");
  ListPanel issuePanel=find("String_Node_Str");
  push(KeyCode.HOME);
  int issueIdBeforeMark=selectedIssueId;
  int issueIdExpected=issueIdBeforeMark - 1;
  push(getKeyCode("String_Node_Str"));
  PlatformEx.waitOnFxThread();
  assertEquals(issueIdExpected,selectedIssueId);
  push(getKeyCode("String_Node_Str"));
  assertEquals(true,issuePanel.getSelectedIssue().isPresent());
  assertEquals(true,issuePanel.getSelectedIssue().get().isCurrentlyRead());
  push(KeyCode.END);
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,selectedIssueId);
  assertEquals(true,issuePanel.getSelectedIssue().isPresent());
  assertEquals(true,issuePanel.getSelectedIssue().get().isCurrentlyRead());
  push(getKeyCode("String_Node_Str"));
  assertEquals(true,issuePanel.getSelectedIssue().isPresent());
  assertEquals(false,issuePanel.getSelectedIssue().get().isCurrentlyRead());
  clearSelectedIssueId();
  click("String_Node_Str");
  type("String_Node_Str");
  push(KeyCode.ENTER);
  press(JUMP_TO_FIRST_ISSUE);
  push(getKeyCode("String_Node_Str"));
  assertEquals(5,selectedIssueId);
  press(MINIMIZE_WINDOW);
  assertEquals(true,stage.isIconified());
}