use of pageobjects.projects.ProjectsPage in project sonarqube by SonarSource.
the class ProjectsPageTest method should_add_language_to_facet.
@Test
public void should_add_language_to_facet() {
ProjectsPage page = nav.openProjects();
page.getFacetByProperty("languages").selectOptionItem("xoo2").shouldHaveValue("xoo2", "0");
}
use of pageobjects.projects.ProjectsPage in project sonarqube by SonarSource.
the class ProjectsPageTest method should_add_tag_to_facet.
@Test
public void should_add_tag_to_facet() {
// Add some tags to this project
wsClient.wsConnector().call(new PostRequest("api/project_tags/set").setParam("project", PROJECT_KEY).setParam("tags", "aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,zz"));
ProjectsPage page = nav.openProjects();
page.getFacetByProperty("tags").shouldHaveValue("aa", "1").shouldHaveValue("ii", "1").selectOptionItem("zz").shouldHaveValue("zz", "1");
}
use of pageobjects.projects.ProjectsPage in project sonarqube by SonarSource.
the class ProjectsPageTest method should_search_for_project.
@Test
public void should_search_for_project() {
ProjectsPage page = nav.openProjects();
page.searchProject("s").shouldHaveTotal(2);
page.searchProject("sam").shouldHaveTotal(1);
}
use of pageobjects.projects.ProjectsPage in project sonarqube by SonarSource.
the class ProjectsPageTest method should_filter_using_facet.
@Test
public void should_filter_using_facet() {
ProjectsPage page = nav.openProjects();
page.shouldHaveTotal(2);
page.getFacetByProperty("duplications").selectValue("3");
page.shouldHaveTotal(1);
}
Aggregations