e2e-tests: Consistently move fullname lookups to callers.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-30 16:16:21 -07:00
parent 067a342b4e
commit ed5f1455f2
5 changed files with 22 additions and 22 deletions

View File

@@ -52,8 +52,8 @@ async function test_user_filter_ui(page: Page): Promise<void> {
// Desdemona should be there by default
await await_user_visible(page, "desdemona");
await add_user_to_stream(page, "cordelia");
await add_user_to_stream(page, "othello");
await add_user_to_stream(page, common.fullname.cordelia);
await add_user_to_stream(page, common.fullname.othello);
await page.type(`form#stream_creation_form [name="user_list_filter"]`, "ot", {delay: 100});
await page.waitForSelector("#create_stream_subscribers", {visible: true});
@@ -64,16 +64,16 @@ async function test_user_filter_ui(page: Page): Promise<void> {
.length === 1,
);
await await_user_hidden(page, "cordelia");
await await_user_hidden(page, common.fullname.cordelia);
await await_user_hidden(page, "desdemona");
await await_user_visible(page, "othello");
await await_user_visible(page, common.fullname.othello);
// Clear the filter.
await clear_ot_filter_with_backspace(page);
await await_user_visible(page, "cordelia");
await await_user_visible(page, common.fullname.cordelia);
await await_user_visible(page, "desdemona");
await await_user_visible(page, "othello");
await await_user_visible(page, common.fullname.othello);
}
async function create_stream(page: Page): Promise<void> {