Search in sources :

Example 6 with ProjectQualityGatePage

use of pageobjects.ProjectQualityGatePage in project sonarqube by SonarSource.

the class ProjectQualityGatePageTest method should_display_default.

@Test
public void should_display_default() {
    QualityGate customQualityGate = createCustomQualityGate("should_display_default");
    qualityGateClient().setDefault(customQualityGate.id());
    ProjectQualityGatePage page = openPage();
    SelenideElement selectedQualityGate = page.getSelectedQualityGate();
    selectedQualityGate.should(Condition.hasText("Default"));
    selectedQualityGate.should(Condition.hasText(customQualityGate.name()));
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) ProjectQualityGatePage(pageobjects.ProjectQualityGatePage) QualityGate(org.sonar.wsclient.qualitygate.QualityGate) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 ProjectQualityGatePage (pageobjects.ProjectQualityGatePage)6 QualityGate (org.sonar.wsclient.qualitygate.QualityGate)5 SelenideElement (com.codeborne.selenide.SelenideElement)4 Ignore (org.junit.Ignore)1