Fixed code flow switch setting

This commit is contained in:
Vito Albano 2023-12-14 17:22:01 +00:00 committed by VitoAlbano
parent 5549e341d9
commit ab872e750f
2 changed files with 5 additions and 3 deletions

View File

@ -26,7 +26,7 @@ describe('Login component - SSO', () => {
const loginPage = new LoginShellPage();
const navigationBarPage = new NavigationBarPage();
describe('Login component - SSO implicit Flow', () => {
xdescribe('Login component - SSO implicit Flow', () => {
afterEach(async () => {
await navigationBarPage.clickLogoutButton();
await browser.executeScript('window.sessionStorage.clear();');

View File

@ -66,7 +66,8 @@ export class SettingsPage {
silentLogin = true,
implicitFlow = true,
clientId?: string,
logoutUrl: string = '/logout'
logoutUrl: string = '/logout',
codeFlow = true
) {
await this.goToSettingsPage();
await this.setProvider('ECM');
@ -76,6 +77,7 @@ export class SettingsPage {
await this.setIdentityHost(identityHost);
await this.setSilentLogin(silentLogin);
await this.setImplicitFlow(implicitFlow);
await this.setCodeFlow(codeFlow);
await this.setClientId(clientId);
await this.setLogoutUrl(logoutUrl);
await this.clickApply();
@ -100,7 +102,7 @@ export class SettingsPage {
await this.setSilentLogin(silentLogin);
await this.setCodeFlow(false);
await this.setImplicitFlow(implicitFlow);
await this.setCodeFlow(true);
await this.setCodeFlow(codeFlow);
await this.setClientId(clientId);
await this.setLogoutUrl(logoutUrl);
await this.clickApply();