@@ -0,0 +1,835 @@
+//@@author A0142421X%0Apackage guitests.guihandles;%0A%0Aimport guitests.GuiRobot;%0Aimport javafx.scene.Node;%0Aimport javafx.stage.Stage;%0Aimport seedu.todo.model.tag.Tag;%0Aimport seedu.todo.model.task.ReadOnlyTask;%0A%0A/**%0A * Provides a handle to a tag card in the tag list panel%0A */%0Apublic class TagCardHandle extends GuiHandle %7B%0A%09private static final String TAG_NAME_FIELD_ID = %22#tagName%22;%0A%09%0A%09private Node node;%0A%09%0A%09public TagCardHandle(GuiRobot guiRobot, Stage primaryStage, Node node) %7B%0A%09%09super(guiRobot, primaryStage, null);%0A        this.node = node;%0A%09%7D%0A%09%0A%09protected String getTextFromLabel(String fieldId) %7B%0A        return getTextFromLabel(fieldId, node);%0A    %7D%0A%09%0A%09public String getTagName() %7B%0A%09%09return getTextFromLabel(TAG_NAME_FIELD_ID);%0A%09%7D%0A%09%0A%09public boolean isSameTag(Tag tag)%7B%0A        return getTagName().equals(tag.getName()); %0A    %7D%0A%0A%7D%0A

Create Tag Card Handle