use of pageobjects.ProjectQualityGatePage in project sonarqube by SonarSource.
the class ProjectQualityGatePageTest method should_set_default.
@Test
public void should_set_default() {
QualityGate customQualityGate = createCustomQualityGate("should_set_default");
qualityGateClient().setDefault(customQualityGate.id());
ProjectQualityGatePage page = openPage();
page.setQualityGate(customQualityGate.name());
SelenideElement selectedQualityGate = page.getSelectedQualityGate();
selectedQualityGate.should(Condition.hasText("Default"));
selectedQualityGate.should(Condition.hasText(customQualityGate.name()));
}
use of pageobjects.ProjectQualityGatePage in project sonarqube by SonarSource.
the class ProjectQualityGatePageTest method should_set_custom.
@Test
public void should_set_custom() {
QualityGate customQualityGate = createCustomQualityGate("should_set_custom");
ProjectQualityGatePage page = openPage();
page.setQualityGate(customQualityGate.name());
SelenideElement selectedQualityGate = page.getSelectedQualityGate();
selectedQualityGate.should(Condition.hasText(customQualityGate.name()));
}
use of pageobjects.ProjectQualityGatePage in project sonarqube by SonarSource.
the class ProjectQualityGatePageTest method should_display_none.
@Test
public void should_display_none() {
qualityGateClient().unsetDefault();
ProjectQualityGatePage page = openPage();
page.assertNotSelected();
}
use of pageobjects.ProjectQualityGatePage in project sonarqube by SonarSource.
the class ProjectQualityGatePageTest method should_display_custom.
@Test
public void should_display_custom() {
QualityGate customQualityGate = createCustomQualityGate("should_display_custom");
associateWithQualityGate(customQualityGate);
ProjectQualityGatePage page = openPage();
SelenideElement selectedQualityGate = page.getSelectedQualityGate();
selectedQualityGate.shouldNot(Condition.hasText("Default"));
selectedQualityGate.should(Condition.hasText(customQualityGate.name()));
}
use of pageobjects.ProjectQualityGatePage in project sonarqube by SonarSource.
the class ProjectQualityGatePageTest method should_set_none.
@Test
@Ignore("find a way to select None")
public void should_set_none() {
qualityGateClient().unsetDefault();
QualityGate customQualityGate = createCustomQualityGate("should_set_none");
associateWithQualityGate(customQualityGate);
ProjectQualityGatePage page = openPage();
page.setQualityGate("");
page.assertNotSelected();
}
Aggregations