Handle GitHub logout properly (#22463)
Add profile info update to GitHub login test cases Closes #22461 Signed-off-by: Tomas Ondrusko <tondrusk@redhat.com>
This commit is contained in:
parent
c6da903ac1
commit
e70ffd0105
2 changed files with 5 additions and 1 deletions
|
@ -50,6 +50,8 @@ public class GitHubLoginPage extends AbstractSocialLoginPage {
|
||||||
public void logout() {
|
public void logout() {
|
||||||
log.info("performing logout from GitHub");
|
log.info("performing logout from GitHub");
|
||||||
URLUtils.navigateToUri("https://github.com/logout");
|
URLUtils.navigateToUri("https://github.com/logout");
|
||||||
|
if (URLUtils.currentUrlEquals("https://github.com/logout")) {
|
||||||
UIUtils.clickLink(logoutButton);
|
UIUtils.clickLink(logoutButton);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -372,6 +372,7 @@ public class SocialLoginTest extends AbstractKeycloakTest {
|
||||||
public void githubLogin() throws InterruptedException {
|
public void githubLogin() throws InterruptedException {
|
||||||
setTestProvider(GITHUB);
|
setTestProvider(GITHUB);
|
||||||
performLogin();
|
performLogin();
|
||||||
|
assertUpdateProfile(true, true, false);
|
||||||
appPage.assertCurrent();
|
appPage.assertCurrent();
|
||||||
testTokenExchange();
|
testTokenExchange();
|
||||||
}
|
}
|
||||||
|
@ -380,6 +381,7 @@ public class SocialLoginTest extends AbstractKeycloakTest {
|
||||||
public void githubPrivateEmailLogin() throws InterruptedException {
|
public void githubPrivateEmailLogin() throws InterruptedException {
|
||||||
setTestProvider(GITHUB_PRIVATE_EMAIL);
|
setTestProvider(GITHUB_PRIVATE_EMAIL);
|
||||||
performLogin();
|
performLogin();
|
||||||
|
assertUpdateProfile(true, true, false);
|
||||||
appPage.assertCurrent();
|
appPage.assertCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue