(core) Fixing UserManger releted tests

Summary: Some tests were not compatible with the new ACUser search component.

Test Plan: Existing

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3643
This commit is contained in:
Jarosław Sadziński
2022-09-27 23:06:02 +02:00
parent a5744dadfb
commit 0af379db7d
4 changed files with 43 additions and 57 deletions

View File

@@ -21,6 +21,11 @@ export interface IAutocompleteOptions<Item extends ACItem> {
// Popper options for positioning the popup.
popperOptions?: Partial<PopperOptions>;
// To which element to append the popup content. Null means triggerElem.parentNode; string is
// a selector for the closest matching ancestor of triggerElem, e.g. 'body'.
// Defaults to the document body.
attach?: Element|string|null;
// Given a search term, return the list of Items to render.
search(searchText: string): Promise<ACResults<Item>>;
@@ -32,10 +37,6 @@ export interface IAutocompleteOptions<Item extends ACItem> {
// A callback triggered when user clicks one of the choices.
onClick?(): void;
// To which element to append the popup content. Null means triggerElem.parentNode and is the
// default; string is a selector for the closest matching ancestor of triggerElem, e.g. 'body'.
attach?: Element|string|null;
}
/**