/*
   * CaseId 77702: Post an activity with "My Spaces" filter selected
   * CaseId 77706: Comment from "My Spaces"
   * Precondition: Space1 is already exist.
   */
  @Test
  public void test02_ActivityComment_MySpacesFilter() {
    String activity = "My Spaces filter: Post an activity.";
    String spaceName = "Space77702";
    String comment = "My Spaces filter: Comment for an activity.";

    // Create data for Pre-Conditions
    spaceMag.goToMySpacePage();
    spaceMag.addNewSpace(spaceName, "");

    // Start test case
    naviToolbar.goToHomePage();

    // Step1: My Spaces filter is displayed
    selectFileter("My Spaces");

    // Add an activity in Space1
    click(By.linkText(spaceName));
    addActivity(true, activity, false, "");

    // Go to Home, select All Activities filter
    naviToolbar.goToHomePage();
    selectFileter("All Activities");

    // Step2: Add a comment
    addComment(activity, comment);

    // Select My Spaces filter
    selectFileter("My Spaces");

    // Delete activity before exit test cases
    hpActivity.deleteActivity(activity);
    spaceMag.goToMySpacePage();
    spaceMag.deleteSpace(spaceName, 300000);
  }