Search in sources :

Example 1 with ProjectAnalysisItem

use of pageobjects.ProjectAnalysisItem in project sonarqube by SonarSource.

the class ProjectActivityPageTest method should_list_snapshots.

@Test
public void should_list_snapshots() {
    analyzeProject("shared/xoo-history-v1", "2014-10-19");
    analyzeProject("shared/xoo-history-v2", "2014-11-13");
    ProjectActivityPage page = openPage();
    page.getAnalyses().shouldHaveSize(2);
    List<ProjectAnalysisItem> analyses = page.getAnalysesAsItems();
    analyses.get(0).shouldHaveEventWithText("1.0-SNAPSHOT").shouldNotHaveDeleteButton();
    analyses.get(1).shouldHaveEventWithText("0.9-SNAPSHOT").shouldHaveDeleteButton();
}
Also used : ProjectAnalysisItem(pageobjects.ProjectAnalysisItem) ProjectActivityPage(pageobjects.ProjectActivityPage) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ProjectActivityPage (pageobjects.ProjectActivityPage)1 ProjectAnalysisItem (pageobjects.ProjectAnalysisItem)1