adding missing await

This commit is contained in:
mildred 2024-03-28 23:12:39 +01:00
parent 367ade285e
commit 61f6a84eaa
3 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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());

View file

@ -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)