mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 07:46:43 +00:00
fix(pw): sso test fail issue
This commit is contained in:
@@ -41,6 +41,6 @@ export class CloudOpenIDLoginPage extends BasePage {
|
||||
authorize.locator(`[type="submit"]`).click(),
|
||||
]);
|
||||
|
||||
await this.rootPage.locator(`[data-testid="nc-sidebar-userinfo"]:has-text("${email.split('@')[0]}")`).waitFor();
|
||||
await this.rootPage.locator(`[data-testid="nc-sidebar-userinfo"][data-email^="${email.split('@')[0]}"]`).waitFor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,6 @@ export class CloudSAMLLoginPage extends BasePage {
|
||||
signIn.locator(`#btn-sign-in`).click(),
|
||||
]);
|
||||
|
||||
await this.rootPage.locator(`[data-testid="nc-sidebar-userinfo"]:has-text("${email.split('@')[0]}")`).waitFor();
|
||||
await this.rootPage.locator(`[data-testid="nc-sidebar-userinfo"][data-email^="${email.split('@')[0]}"]`).waitFor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,6 @@ export class CloudSSOLoginPage extends BasePage {
|
||||
signIn.getByTestId('nc-form-signin__submit').click(),
|
||||
]);
|
||||
|
||||
await this.rootPage.locator(`[data-testid="nc-sidebar-userinfo"]:has-text("${email.split('@')[0]}")`);
|
||||
await this.rootPage.locator(`[data-testid="nc-sidebar-userinfo"][data-email^="${email.split('@')[0]}"]`).waitFor();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user