Skip to content

Commit

Permalink
Fix GUI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nginyc committed Nov 6, 2016
1 parent 5898a53 commit 889e64e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/java/guitests/guihandles/ToDoListPanelHandle.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ public interface ToDoListPanelHandle {
* @return true if ToDoList are matched in both panel, else return false
*/
public static boolean isBothListMatching(EventListPanelHandle eventListPanel, TaskListPanelHandle taskListPanel, ToDo... currentList){
return eventListPanel.isListMatching(currentList) &&
// Sleep to let the UI update
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}

return eventListPanel.isListMatching(currentList) &&
taskListPanel.isListMatching(eventListPanel.getNumberOfToDo(), currentList);
}
}

0 comments on commit 889e64e

Please sign in to comment.