Program: 135275
Project: 135275
Buggy source:
@Test public void globalConfigTest(){
  TextField repoOwnerField=find("String_Node_Str");
  doubleClick(repoOwnerField);
  doubleClick(repoOwnerField);
  type("String_Node_Str").push(KeyCode.TAB);
  type("String_Node_Str").push(KeyCode.TAB);
  type("String_Node_Str").push(KeyCode.TAB);
  type("String_Node_Str");
  click("String_Node_Str");
  ComboBox<String> repositorySelector=findOrWaitFor("String_Node_Str");
  waitForValue(repositorySelector);
  assertEquals("String_Node_Str",repositorySelector.getValue());
  press(KeyCode.CONTROL).press(KeyCode.X).release(KeyCode.X).release(KeyCode.CONTROL);
  click("String_Node_Str");
  click("String_Node_Str");
  ((TextField)find("String_Node_Str")).setText("String_Node_Str");
  click("String_Node_Str");
  PlatformEx.runAndWait(() -> UI.events.triggerEvent(new ShowRenamePanelEvent(0)));
  type("String_Node_Str");
  PanelNameTextField renameTextField1=find("String_Node_Str");
  assertEquals("String_Node_Str",renameTextField1.getText());
  push(KeyCode.ENTER);
  press(KeyCode.CONTROL).press(KeyCode.P).release(KeyCode.P).release(KeyCode.CONTROL);
  waitUntilNodeAppears("String_Node_Str");
  click("String_Node_Str");
  type("String_Node_Str");
  press(KeyCode.SHIFT).press(KeyCode.SEMICOLON).release(KeyCode.SEMICOLON).release(KeyCode.SHIFT);
  type("String_Node_Str");
  push(KeyCode.ENTER);
  click("String_Node_Str");
  type("String_Node_Str");
  PanelNameTextField renameTextField2=find("String_Node_Str");
  assertEquals("String_Node_Str",renameTextField2.getText());
  push(KeyCode.ENTER);
  press(KeyCode.SHIFT).press(KeyCode.CONTROL).press(KeyCode.P);
  release(KeyCode.P).release(KeyCode.CONTROL).release(KeyCode.SHIFT);
  FilterTextField filterTextField3=find("String_Node_Str");
  click(filterTextField3);
  type("String_Node_Str");
  press(KeyCode.SHIFT).press(KeyCode.SEMICOLON).release(KeyCode.SEMICOLON).release(KeyCode.SHIFT);
  type("String_Node_Str");
  assertEquals("String_Node_Str",filterTextField3.getText());
  push(KeyCode.ENTER);
  PlatformEx.runAndWait(() -> UI.events.triggerEvent(new ShowRenamePanelEvent(0)));
  type("String_Node_Str");
  PanelNameTextField renameTextField3=find("String_Node_Str");
  assertEquals("String_Node_Str",renameTextField3.getText());
  push(KeyCode.ENTER);
  click("String_Node_Str");
  click("String_Node_Str");
  ((TextField)find("String_Node_Str")).setText("String_Node_Str");
  click("String_Node_Str");
  click("String_Node_Str");
  click("String_Node_Str");
  File testConfig=new File(Preferences.DIRECTORY,Preferences.TEST_CONFIG_FILE);
  if (!(testConfig.exists() && testConfig.isFile()))   fail();
  Preferences testPref=new Preferences(true);
  assertEquals("String_Node_Str",testPref.getLastLoginUsername());
  assertEquals("String_Node_Str",testPref.getLastLoginPassword());
  RepositoryId lastViewedRepository=testPref.getLastViewedRepository().get();
  assertEquals("String_Node_Str",lastViewedRepository.generateId());
  Map<String,List<PanelInfo>> boards=testPref.getAllBoards();
  List<PanelInfo> emptyBoard=boards.get("String_Node_Str");
  assertEquals(1,emptyBoard.size());
  assertEquals("String_Node_Str",emptyBoard.get(0).getPanelFilter());
  assertEquals("String_Node_Str",emptyBoard.get(0).getPanelName());
  List<PanelInfo> dummyBoard=boards.get("String_Node_Str");
  assertEquals(3,dummyBoard.size());
  assertEquals("String_Node_Str",dummyBoard.get(0).getPanelFilter());
  assertEquals("String_Node_Str",dummyBoard.get(1).getPanelFilter());
  assertEquals("String_Node_Str",dummyBoard.get(2).getPanelFilter());
  assertEquals("String_Node_Str",dummyBoard.get(0).getPanelName());
  assertEquals("String_Node_Str",dummyBoard.get(1).getPanelName());
  assertEquals("String_Node_Str",dummyBoard.get(2).getPanelName());
  List<String> lastOpenFilters=testPref.getLastOpenFilters();
  List<String> lastOpenPanelNames=testPref.getPanelNames();
  assertEquals("String_Node_Str",lastOpenFilters.get(0));
  assertEquals("String_Node_Str",lastOpenFilters.get(1));
  assertEquals("String_Node_Str",lastOpenFilters.get(2));
  assertEquals("String_Node_Str",lastOpenPanelNames.get(0));
  assertEquals("String_Node_Str",lastOpenPanelNames.get(1));
  assertEquals("String_Node_Str",lastOpenPanelNames.get(2));
}

Fixed version (ground truth):
@Test public void globalConfigTest(){
  TextField repoOwnerField=find("String_Node_Str");
  doubleClick(repoOwnerField);
  doubleClick(repoOwnerField);
  type("String_Node_Str");
  pushKeys(KeyCode.TAB);
  type("String_Node_Str");
  pushKeys(KeyCode.TAB);
  type("String_Node_Str");
  pushKeys(KeyCode.TAB);
  type("String_Node_Str");
  click("String_Node_Str");
  ComboBox<String> repositorySelector=findOrWaitFor("String_Node_Str");
  waitForValue(repositorySelector);
  assertEquals("String_Node_Str",repositorySelector.getValue());
  pushKeys(KeyboardShortcuts.MAXIMIZE_WINDOW);
  click("String_Node_Str");
  click("String_Node_Str");
  ((TextField)find("String_Node_Str")).setText("String_Node_Str");
  click("String_Node_Str");
  PlatformEx.runAndWait(() -> UI.events.triggerEvent(new ShowRenamePanelEvent(0)));
  type("String_Node_Str");
  PanelNameTextField renameTextField1=find("String_Node_Str");
  assertEquals("String_Node_Str",renameTextField1.getText());
  pushKeys(KeyCode.ENTER);
  pushKeys(KeyboardShortcuts.CREATE_RIGHT_PANEL);
  waitUntilNodeAppears("String_Node_Str");
  click("String_Node_Str");
  type("String_Node_Str");
  pushKeys(KeyCode.SHIFT,KeyCode.SEMICOLON);
  type("String_Node_Str");
  pushKeys(KeyCode.ENTER);
  click("String_Node_Str");
  type("String_Node_Str");
  PanelNameTextField renameTextField2=find("String_Node_Str");
  assertEquals("String_Node_Str",renameTextField2.getText());
  pushKeys(KeyCode.ENTER);
  pushKeys(KeyboardShortcuts.CREATE_LEFT_PANEL);
  FilterTextField filterTextField3=find("String_Node_Str");
  click(filterTextField3);
  type("String_Node_Str");
  pushKeys(KeyCode.SHIFT,KeyCode.SEMICOLON);
  type("String_Node_Str");
  assertEquals("String_Node_Str",filterTextField3.getText());
  pushKeys(KeyCode.ENTER);
  PlatformEx.runAndWait(() -> UI.events.triggerEvent(new ShowRenamePanelEvent(0)));
  type("String_Node_Str");
  PanelNameTextField renameTextField3=find("String_Node_Str");
  assertEquals("String_Node_Str",renameTextField3.getText());
  pushKeys(KeyCode.ENTER);
  click("String_Node_Str");
  click("String_Node_Str");
  ((TextField)find("String_Node_Str")).setText("String_Node_Str");
  click("String_Node_Str");
  click("String_Node_Str");
  click("String_Node_Str");
  File testConfig=new File(Preferences.DIRECTORY,Preferences.TEST_CONFIG_FILE);
  if (!(testConfig.exists() && testConfig.isFile()))   fail();
  Preferences testPref=new Preferences(true);
  assertEquals("String_Node_Str",testPref.getLastLoginUsername());
  assertEquals("String_Node_Str",testPref.getLastLoginPassword());
  RepositoryId lastViewedRepository=testPref.getLastViewedRepository().get();
  assertEquals("String_Node_Str",lastViewedRepository.generateId());
  Map<String,List<PanelInfo>> boards=testPref.getAllBoards();
  List<PanelInfo> emptyBoard=boards.get("String_Node_Str");
  assertEquals(1,emptyBoard.size());
  assertEquals("String_Node_Str",emptyBoard.get(0).getPanelFilter());
  assertEquals("String_Node_Str",emptyBoard.get(0).getPanelName());
  List<PanelInfo> dummyBoard=boards.get("String_Node_Str");
  assertEquals(3,dummyBoard.size());
  assertEquals("String_Node_Str",dummyBoard.get(0).getPanelFilter());
  assertEquals("String_Node_Str",dummyBoard.get(1).getPanelFilter());
  assertEquals("String_Node_Str",dummyBoard.get(2).getPanelFilter());
  assertEquals("String_Node_Str",dummyBoard.get(0).getPanelName());
  assertEquals("String_Node_Str",dummyBoard.get(1).getPanelName());
  assertEquals("String_Node_Str",dummyBoard.get(2).getPanelName());
  List<String> lastOpenFilters=testPref.getLastOpenFilters();
  List<String> lastOpenPanelNames=testPref.getPanelNames();
  assertEquals("String_Node_Str",lastOpenFilters.get(0));
  assertEquals("String_Node_Str",lastOpenFilters.get(1));
  assertEquals("String_Node_Str",lastOpenFilters.get(2));
  assertEquals("String_Node_Str",lastOpenPanelNames.get(0));
  assertEquals("String_Node_Str",lastOpenPanelNames.get(1));
  assertEquals("String_Node_Str",lastOpenPanelNames.get(2));
}