use of org.eclipse.reddeer.swt.condition.TableContainsItem in project jbosstools-openshift by jbosstools.
the class TemplateParametersTest method testModifyTemplateParameter.
@Test
public void testModifyTemplateParameter() {
new DefaultTable().getItem(SOURCE_REPOSITORY_URL).select();
new PushButton(OpenShiftLabel.Button.EDIT).click();
new DefaultShell(OpenShiftLabel.Shell.EDIT_TEMPLATE_PARAMETER);
new DefaultText().setText(PERSONAL_GIT_REPO_URI);
new OkButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.EDIT_TEMPLATE_PARAMETER));
new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD);
assertTrue("New value of git repo URI has not been modified successfully.", new DefaultTable().getItem(SOURCE_REPOSITORY_URL).getText(1).equals(PERSONAL_GIT_REPO_URI));
new PushButton(OpenShiftLabel.Button.RESET).click();
try {
new WaitUntil(new TableContainsItem(new DefaultTable(), SOURCE_REPOSITORY_URL_VALUE, 1), TimePeriod.DEFAULT);
} catch (WaitTimeoutExpiredException ex) {
fail("Value for git repo URI has not been reset.");
}
}
Aggregations