test: reorder assertions for user page related tests

This commit is contained in:
Jakub P
2025-04-01 14:46:33 +02:00
parent 48b55b2dab
commit acea109fb7

View File

@@ -25,12 +25,12 @@ export class AdminUsersPage extends AuthenticatedPage {
async navigateTo() {
await this.profileMenuButton.click();
await this.adminMenuItem.click();
await this.isMounted();
await Promise.all([
this.page.waitForResponse(
(resp) => resp.url().includes('/admin/users') && resp.status() === 200
),
this.adminMenuItem.click(),
this.isMounted(),
]);
if (await this.usersLoader.isVisible()) {
await this.usersLoader.waitFor({