From 44e40af2f589880663cd5dbf42691049481f5f93 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:31:33 +0200 Subject: [PATCH] add missing await --- frontend/tests/utils/page-content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/tests/utils/page-content.ts b/frontend/tests/utils/page-content.ts index b425aeced..ba9fe35a9 100644 --- a/frontend/tests/utils/page-content.ts +++ b/frontend/tests/utils/page-content.ts @@ -83,7 +83,7 @@ export class PageContent extends BasePage { await this.tab('Loaded libraries').click(); expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy(); this.page.getByTestId('search-input').fill(name); - expect(this.getRow(name)).toBeVisible(); + await expect(this.getRow(name)).toBeVisible(); return; } await this.importItemButton(name, language === 'any' ? undefined : language).click(); @@ -92,7 +92,7 @@ export class PageContent extends BasePage { }); await this.tab('Loaded libraries').click(); expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy(); - expect(this.getRow(name)).toBeVisible(); + await expect(this.getRow(name)).toBeVisible(); } async viewItemDetail(value?: string) {