@Feature(
      summary = "The user can search for another user",
      tcmsTestPlanIds = 5316,
      tcmsTestCaseIds = 0)
  @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
  public void successfulPersonSearchAndDisplay() throws Exception {
    ExplorePage explorePage =
        new BasicWorkFlow()
            .goToHome()
            .gotoExplore()
            .enterSearch("trans")
            .expectPersonListContains("translator");

    assertThat(explorePage.getUserSearchResults())
        .contains("translator")
        .as("Normal user can see the person listed");

    ProfilePage profilePage = explorePage.clickUserSearchEntry("translator");

    assertThat(profilePage.getUsername().trim()).isEqualTo("translator");
    assertThat(profilePage.getDisplayName().trim()).isEqualTo("translator");
    String languages = profilePage.getLanguages().trim();
    assertThat(Splitter.on(",").trimResults().split(languages))
        .contains("Hindi", "Polish", "French");
  }
 @Feature(
     summary = "The user can access another user's profile via the URL",
     tcmsTestPlanIds = 5316,
     tcmsTestCaseIds = 0)
 @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
 public void viewProfileViaUrl() throws Exception {
   BasicWorkFlow basicWorkFlow = new BasicWorkFlow();
   ProfilePage profilePage =
       basicWorkFlow
           .goToHome()
           .gotoExplore()
           .enterSearch("translator")
           .clickUserSearchEntry("translator");
   assertThat(profilePage.getUsername().trim()).isEqualTo("translator");
 }
  @Feature(
      summary = "A logged user can see another user's contributions",
      tcmsTestPlanIds = 5316,
      tcmsTestCaseIds = 0)
  @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
  public void contributionsAreVisibleToLoggedInUsers() throws Exception {
    new LoginWorkFlow().signIn("glossarist", "glossarist");
    ProfilePage profilePage =
        new BasicWorkFlow()
            .goToHome()
            .gotoExplore()
            .enterSearch("trans")
            .expectPersonListContains("translator")
            .clickUserSearchEntry("translator");

    assertThat(profilePage.expectContributionsMatrixVisible())
        .isTrue()
        .as("A logged in user can see the user's contributions");
  }