コード例 #1
0
  @Test(dependsOnMethods = "clickConfigureButton")
  public void configExternalRss() throws InterruptedException {
    rssFeedUrlBoxPage.fillURL(CUSTOM_RSS_URL);
    rssFeedUrlBoxPage.clickOk();
    for (int i = 0; i < 1000; i++) {
      if (rssFeedDashlet.getTitle().equals(EXP_CUSTOM_RSS_TITLE)) {
        break;
      }
    }

    assertEquals(rssFeedDashlet.getTitle(), EXP_CUSTOM_RSS_TITLE);
  }
コード例 #2
0
  @Test(dependsOnMethods = "configExternalRss")
  public void getNrOfHeadlines() throws InterruptedException {
    rssFeedUrlBoxPage = rssFeedDashlet.clickConfigure().render();
    rssFeedUrlBoxPage.fillURL(rssUrl);
    rssFeedUrlBoxPage.selectNrOfItemsToDisplay(NrItems.Five);
    rssFeedUrlBoxPage.clickOk();

    for (int i = 0; i < 1000; i++) {
      if (rssFeedDashlet.getTitle().equals(rssTitle)) {
        break;
      }
    }

    List<ShareLink> links = rssFeedDashlet.getHeadlineLinksFromDashlet();
    assertTrue(links.size() > 4);
  }