Browse Source

test: wait until redirect url generates

pull/7569/head
Pranav C 11 months ago
parent
commit
e86d483797
  1. 6
      tests/playwright/pages/Account/Authentication.ts

6
tests/playwright/pages/Account/Authentication.ts

@ -71,6 +71,9 @@ export class AccountAuthenticationPage extends BasePage {
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) {
const redirectUrl = (
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');
// wait until redirect url is generated
await oidcModal.locator('[data-test-id="nc-openid-redirect-url"]:has-text("http://")').waitFor();
if (setupRedirectUrlCbk) {
const redirectUrl = (
await oidcModal.locator('[data-test-id="nc-openid-redirect-url"]:has-text("http://")').textContent()

Loading…
Cancel
Save