Merge pull request #2426 from automatisch/reorder-assertions-for-user-page-tests
test: reorder assertions for user page related tests
This commit is contained in:
@@ -25,12 +25,12 @@ export class AdminUsersPage extends AuthenticatedPage {
|
|||||||
|
|
||||||
async navigateTo() {
|
async navigateTo() {
|
||||||
await this.profileMenuButton.click();
|
await this.profileMenuButton.click();
|
||||||
await this.adminMenuItem.click();
|
|
||||||
await this.isMounted();
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.page.waitForResponse(
|
this.page.waitForResponse(
|
||||||
(resp) => resp.url().includes('/admin/users') && resp.status() === 200
|
(resp) => resp.url().includes('/admin/users') && resp.status() === 200
|
||||||
),
|
),
|
||||||
|
this.adminMenuItem.click(),
|
||||||
|
this.isMounted(),
|
||||||
]);
|
]);
|
||||||
if (await this.usersLoader.isVisible()) {
|
if (await this.usersLoader.isVisible()) {
|
||||||
await this.usersLoader.waitFor({
|
await this.usersLoader.waitFor({
|
||||||
|
|||||||
Reference in New Issue
Block a user