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