@Test public void shouldLandOnCorrectPageWhenClickOnResult() { BrowseApiPage browseOrgPage = open(BrowseApiPage.class).search(firstApiBean.getName()); browseOrgPage.openResult(firstApiBean.getName()); PageAssert.assertBrowseApiDetail(firstApiBean); }
@Test public void shouldFindMultipleResults() { BrowseApiPage browseOrgPage = open(BrowseApiPage.class).search(ApiUtils.TEST_API_NAME_BASE); browseOrgPage.noContentInfo().shouldNotBe(visible); browseOrgPage .resultEntries() .filterBy(or("name equal to", text(firstApiBean.getName()), text(secondApiBean.getName()))) .shouldHaveSize(2); }
@Test public void shouldFindSingleResult() { BrowseApiPage browseApiPage = open(BrowseApiPage.class).search(firstApiBean.getName()); browseApiPage.noContentInfo().shouldNotBe(visible); browseApiPage.resultEntries().shouldHaveSize(1); }