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();
}
Aggregations