adding missing await
This commit is contained in:
parent
367ade285e
commit
61f6a84eaa
|
@ -42,7 +42,6 @@ export class LogInPage {
|
|||
}
|
||||
|
||||
async errorMessageIsValid() {
|
||||
|
||||
try {
|
||||
await this.page.locator('.well.well-small.text-error').waitFor({ state: 'visible', timeout: 5000 });
|
||||
// If the error message is found and visible, retrieve its text content
|
||||
|
|
|
@ -92,7 +92,6 @@ export class CredentialRequestPage {
|
|||
|
||||
async requestCredential(did: string, credential: string) {
|
||||
try {
|
||||
console.log("DId", did);
|
||||
(await this.getDropdownDid()).selectOption({ label: did });
|
||||
(await this.getDropdownCredential()).selectOption({ label: credential });
|
||||
(await this.clickRequestButton());
|
||||
|
|
|
@ -11,7 +11,7 @@ test.describe('Admin login functionality', () => {
|
|||
const loginPage = new LogInPage(page)
|
||||
await loginPage.visit(URL_IDHUB);
|
||||
await loginPage.login(ADMIN_EMAIL, KO_ADMIN_K)
|
||||
expect(loginPage.errorMessageIsValid()).toBeTruthy();
|
||||
expect(await loginPage.errorMessageIsValid()).toBeTruthy();
|
||||
})
|
||||
test('Navigate to Forgot password page from login page', async ({ page }) => {
|
||||
const loginPage = new LogInPage(page)
|
||||
|
|
Reference in New Issue