test: improve navigateTo on users-page

This commit is contained in:
Jakub P
2025-05-04 00:19:11 +02:00
parent 2ebe05e55a
commit c6b919f183
3 changed files with 14 additions and 4 deletions

View File

@@ -24,6 +24,16 @@ export class AdminUsersPage extends AuthenticatedPage {
}
async navigateTo() {
await this.profileMenuButton.click();
await Promise.all([this.adminMenuItem.click(), this.isMounted()]);
if (await this.usersLoader.isVisible()) {
await this.usersLoader.waitFor({
state: 'detached',
});
}
}
async navigateToAndWaitForUsers() {
await this.profileMenuButton.click();
await Promise.all([
this.page.waitForResponse(