package guitests.guihandles;

import guitests.GuiRobot;
import javafx.scene.control.TextArea;
import javafx.stage.Stage;
import seedu.taskitty.TestApp;

/**
 * A handler for the ResultDisplay of the UI
 */
public class ResultDisplayHandle extends GuiHandle {

    public static final String RESULT_DISPLAY_ID = "#resultDisplay";

    public ResultDisplayHandle(GuiRobot guiRobot, Stage primaryStage) {
        super(guiRobot, primaryStage, TestApp.APP_TITLE);
    }

    public String getText() {
        return getResultDisplay().getText();
    }

    private TextArea getResultDisplay() {
        return (TextArea) getNode(RESULT_DISPLAY_ID);
    }
}

@@ -77,24 +77,21 @@
 control.
-TextArea
+Label
 ;%0Aimport
@@ -307,21 +307,20 @@
 = %22#
-resultDisplay
+toolTipLabel
 %22;%0A%0A
@@ -550,24 +550,21 @@
 private 
-TextArea
+Label
  getResu
@@ -597,16 +597,13 @@
 rn (
-TextArea
+Label
 ) ge

Fix tests bug