Search in sources :

Example 1 with RuleItem

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

Aggregations

Test (org.junit.Test)1 RuleItem (pageobjects.RuleItem)1 RulesPage (pageobjects.RulesPage)1