Search in sources :

Example 6 with ProjectsPage

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");
}
Also used : ProjectsPage(pageobjects.projects.ProjectsPage) Test(org.junit.Test)

Example 7 with ProjectsPage

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");
}
Also used : PostRequest(org.sonarqube.ws.client.PostRequest) ProjectsPage(pageobjects.projects.ProjectsPage) Test(org.junit.Test)

Example 8 with ProjectsPage

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);
}
Also used : ProjectsPage(pageobjects.projects.ProjectsPage) Test(org.junit.Test)

Example 9 with ProjectsPage

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);
}
Also used : ProjectsPage(pageobjects.projects.ProjectsPage) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)9 ProjectsPage (pageobjects.projects.ProjectsPage)9 PostRequest (org.sonarqube.ws.client.PostRequest)1