test: improve navigateTo on users-page
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user