|
|
@ -71,6 +71,9 @@ export class AccountAuthenticationPage extends BasePage { |
|
|
|
|
|
|
|
|
|
|
|
const samlModal = this.accountPage.rootPage.locator('.nc-saml-modal'); |
|
|
|
const samlModal = this.accountPage.rootPage.locator('.nc-saml-modal'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// wait until redirect url is generated
|
|
|
|
|
|
|
|
await samlModal.locator('[data-test-id="nc-saml-redirect-url"]:has-text("http://")').waitFor(); |
|
|
|
|
|
|
|
|
|
|
|
if (setupRedirectUrlCbk) { |
|
|
|
if (setupRedirectUrlCbk) { |
|
|
|
const redirectUrl = ( |
|
|
|
const redirectUrl = ( |
|
|
|
await samlModal.locator('[data-test-id="nc-saml-redirect-url"]:has-text("http://")').textContent() |
|
|
|
await samlModal.locator('[data-test-id="nc-saml-redirect-url"]:has-text("http://")').textContent() |
|
|
@ -117,6 +120,9 @@ export class AccountAuthenticationPage extends BasePage { |
|
|
|
|
|
|
|
|
|
|
|
const oidcModal = this.accountPage.rootPage.locator('.nc-oidc-modal'); |
|
|
|
const oidcModal = this.accountPage.rootPage.locator('.nc-oidc-modal'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// wait until redirect url is generated
|
|
|
|
|
|
|
|
await oidcModal.locator('[data-test-id="nc-openid-redirect-url"]:has-text("http://")').waitFor(); |
|
|
|
|
|
|
|
|
|
|
|
if (setupRedirectUrlCbk) { |
|
|
|
if (setupRedirectUrlCbk) { |
|
|
|
const redirectUrl = ( |
|
|
|
const redirectUrl = ( |
|
|
|
await oidcModal.locator('[data-test-id="nc-openid-redirect-url"]:has-text("http://")').textContent() |
|
|
|
await oidcModal.locator('[data-test-id="nc-openid-redirect-url"]:has-text("http://")').textContent() |
|
|
|