diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 81942e9fc2..add7f3ff77 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -52,7 +52,7 @@ jobs: contactCount: 500 discardCount: 2 - metric: convoOpen - script: ts/test-mock/benchmarks/group_send_bench.js + script: ts/test-mock/benchmarks/convo_open_bench.js runCount: 100 - metric: callHistorySearch script: ts/test-mock/benchmarks/call_history_search_bench.js diff --git a/ts/test-mock/benchmarks/group_send_bench.ts b/ts/test-mock/benchmarks/group_send_bench.ts index 5d610775b9..75aa31a66e 100644 --- a/ts/test-mock/benchmarks/group_send_bench.ts +++ b/ts/test-mock/benchmarks/group_send_bench.ts @@ -140,12 +140,12 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise => { { const leftPane = window.locator('#LeftPane'); - // Left pane should show either the message preview or - // "You were added to the group". + // Wait for group state to be fetched await leftPane .locator( `.module-conversation-list__item--contact-or-conversation[data-testid="${group.id}"]` ) + .getByText(GROUP_NAME) .waitFor(); }