use of pageobjects.RuleItem in project sonarqube by SonarSource.
the class LiteTest method open_page_rules.
@Test
public void open_page_rules() {
RulesPage rulesPage = Navigation.get(ORCHESTRATOR).openHomepage().clickOnRules();
// wait for rules to be displayed
rulesPage.getRules().shouldHave(CollectionCondition.sizeGreaterThan(0));
assertThat(rulesPage.getTotal()).isGreaterThan(0);
for (RuleItem ruleItem : rulesPage.getRulesAsItems()) {
ruleItem.getTitle().should(Condition.visible);
ruleItem.getMetadata().should(or("have type", hasText("Bug"), hasText("Code Smell"), hasText("Vulnerability")));
}
}