@Test public void shouldFindSingleResult() { BrowseApiPage browseApiPage = open(BrowseApiPage.class).search(firstApiBean.getName()); browseApiPage.noContentInfo().shouldNotBe(visible); browseApiPage.resultEntries().shouldHaveSize(1); }
@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); }