package guitests;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class CommandBoxTest extends TaskBookGuiTest {

    @Test
    public void commandBox_commandSucceeds_textCleared() {
        commandBox.runCommand(td.todo1.getAddCommand());
        assertEquals(commandBox.getCommandInput(), "");
    }

    @Test
    public void commandBox_commandFails_textStays(){
        commandBox.runCommand("invalid command");
        assertEquals(commandBox.getCommandInput(), "invalid command");
        //TODO: confirm the text box color turns to red
    }

}

@@ -36,16 +36,65 @@
 .Test;%0A%0A
+import seedu.oneline.testutil.TypicalTestTasks;%0A%0A
 import s
@@ -289,10 +289,24 @@
 and(
-td
+TypicalTestTasks
 .tod

Modify test case to assess fields statically