use of org.jboss.tools.openshift.reddeer.utils.AuthenticationTokenRetrival in project jbosstools-openshift by jbosstools.
the class CreateNewConnectionTest method shouldExtractTokenInBrowserWindow.
// Skip Test for now, not stable
// @Test
@RunIf(conditionClass = ConnectionCredentialsExists.class)
public void shouldExtractTokenInBrowserWindow() {
openConnectionWizardAndSetDefaultServerOAuth();
String token = new AuthenticationTokenRetrival(DatastoreOS3.USERNAME, DatastoreOS3.PASSWORD).retrieveToken();
String tokenText = new LabeledText(OpenShiftLabel.TextLabels.TOKEN).getText();
assertEquals(token, tokenText);
new CancelButton().click();
}
Aggregations