test: fix multi-tenant flakes (#12983)
This commit is contained in:
@@ -160,7 +160,6 @@ test.describe('Multi Tenant', () => {
|
||||
data: credentials.admin,
|
||||
})
|
||||
await page.goto(globalMenuURL.list)
|
||||
await page.waitForURL(globalMenuURL.create)
|
||||
await expect(page.locator('.collection-edit')).toBeVisible()
|
||||
})
|
||||
|
||||
@@ -282,6 +281,7 @@ test.describe('Multi Tenant', () => {
|
||||
urlUtil: tenantsURL,
|
||||
})
|
||||
|
||||
await expect(page.locator('#field-name')).toBeVisible()
|
||||
await page.locator('#field-name').fill('Red Dog')
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
|
||||
@@ -159,6 +159,13 @@ export interface User {
|
||||
hash?: string | null;
|
||||
loginAttempts?: number | null;
|
||||
lockUntil?: string | null;
|
||||
sessions?:
|
||||
| {
|
||||
id: string;
|
||||
createdAt?: string | null;
|
||||
expiresAt: string;
|
||||
}[]
|
||||
| null;
|
||||
password?: string | null;
|
||||
}
|
||||
/**
|
||||
@@ -291,6 +298,13 @@ export interface UsersSelect<T extends boolean = true> {
|
||||
hash?: T;
|
||||
loginAttempts?: T;
|
||||
lockUntil?: T;
|
||||
sessions?:
|
||||
| T
|
||||
| {
|
||||
id?: T;
|
||||
createdAt?: T;
|
||||
expiresAt?: T;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
|
||||
Reference in New Issue
Block a user