// Qmetry ID: 69807
  // View content of search result when user does not have permission to view page
  @Test
  public void test03_ViewContentOfSearchResultWhenUserDoesNotHavePermissionToViewPage() {

    String[] user1 = {"james"};

    String PAGE_NAME1 = "Wiki_Advanced_Search_03";

    By ELEMENT_PAGE1 = By.linkText(PAGE_NAME1);

    goToWiki();

    addBlankWikiPage(PAGE_NAME1, PAGE_NAME1, 0);

    deletePagePermission("any");

    addPagePermission(0, user1);

    editPagePermission("james", false, false, false, 2);

    magAc.signOut();

    magAc.signIn("james", "gtn");

    goToWiki();

    advancedSearch(PAGE_NAME1, "Intranet");

    // waitForTextPresent(ELEMENT_VERIFY_MESSAGE);
    waitForAndGetElement(
        ELEMENT_VERIFY_RESULT_SEARCH.replace("${pageName}", PAGE_NAME1), DEFAULT_TIMEOUT, 1, 2);

    magAc.signOut();

    magAc.signIn("john", "gtn");

    goToWiki();

    click(ELEMENT_PAGE1);

    deleteCurrentWikiPage();
  }
  // Qmetry ID: 69799
  // Search when the keyword is not matched
  @Test
  public void test02_SearchWhenKeyWordIsNotMatched() {

    String PAGE_NAME1 = "Wiki_Advanced_Search_02";

    By ELEMENT_PAGE1 = By.linkText(PAGE_NAME1);

    goToWiki();

    addBlankWikiPage(PAGE_NAME1, PAGE_NAME1, 0);

    advancedSearch("bbb", "Intranet");

    // waitForTextPresent(ELEMENT_VERIFY_MESSAGE);
    waitForAndGetElement(
        ELEMENT_VERIFY_RESULT_SEARCH.replace("${pageName}", "bbb"), DEFAULT_TIMEOUT, 1, 2);

    click(ELEMENT_PAGE1);

    deleteCurrentWikiPage();
  }