Skip to content

Commit

Permalink
Fix library import util
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed May 3, 2024
1 parent 4ae651c commit 586aea3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/tests/utils/page-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ export class PageContent extends BasePage {
return;
}
}
// If the library is not visible, it might have already been imported
if (await this.getRow(ref).isHidden()) {
await this.tab('Imported libraries').click();
expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy();
expect(this.getRow(ref)).toBeVisible();
return;
}
await this.importItemButton(ref, language === 'any' ? undefined : language).click();
await this.isToastVisible(`The library object has been successfully imported.+`, undefined, {
timeout: 15000
Expand Down

0 comments on commit 586aea3

Please sign in to comment.