use of org.jenkinsci.test.acceptance.po.WizardCustomizeJenkins in project acceptance-test-harness by jenkinsci.
the class InstallWizardTest method wizardInstallSuggestedTest.
@Since("2.0")
@Test
public void wizardInstallSuggestedTest() throws IOException {
jenkins.open();
// Login step
WizardLogin wizardLogin = new WizardLogin(jenkins);
wizardLogin.doSuccessfulLogin(wizardLogin.getPassword(controller));
// Customize Jenkins step
WizardCustomizeJenkins wizardCustomize = new WizardCustomizeJenkins(jenkins);
wizardCustomize.doInstallSuggested();
wizardCustomize.shouldFinishInstallSuccessfully();
// Create user test
WizardCreateAdminUser createAdmin = new WizardCreateAdminUser(jenkins);
createAdmin.createAdminUser(USERNAME, PASSWORD, FULL_NAME, EMAIL);
createAdmin.shouldCreateTheUserSuccessfully();
createAdmin.wizardShouldFinishSuccessfully();
// Check that the new user is logged in
Login login = new Login(jenkins);
Assert.assertThat(login, loggedInAs("adminuser"));
}
use of org.jenkinsci.test.acceptance.po.WizardCustomizeJenkins in project acceptance-test-harness by jenkinsci.
the class InstallWizardTest method wizardInstallCustomPluginsTest.
@Since("2.0")
@Test
public void wizardInstallCustomPluginsTest() throws IOException {
jenkins.open();
// Login step
WizardLogin wizardLogin = new WizardLogin(jenkins);
wizardLogin.doSuccessfulLogin(wizardLogin.getPassword(controller));
// Customize Jenkins step
WizardCustomizeJenkins wizardCustomize = new WizardCustomizeJenkins(jenkins);
wizardCustomize.doSelectPluginsToInstall();
wizardCustomize.deselectAll();
wizardCustomize.searchPlugin("pipeline");
wizardCustomize.selectPlugin("workflow-aggregator");
wizardCustomize.startInstall();
wizardCustomize.shouldFinishInstallSuccessfully();
// Create user test
WizardCreateAdminUser createAdmin = new WizardCreateAdminUser(jenkins);
createAdmin.createAdminUser(USERNAME, PASSWORD, FULL_NAME, EMAIL);
createAdmin.shouldCreateTheUserSuccessfully();
createAdmin.wizardShouldFinishSuccessfully();
// Check that the new user is logged in
Login login = new Login(jenkins);
Assert.assertThat(login, loggedInAs("adminuser"));
}
Aggregations