Add Lightbox integration test

This commit is contained in:
Jamie Kyle 2024-09-09 15:43:59 -07:00 committed by GitHub
parent 4f9d383180
commit bdbc63ccf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 343 additions and 85 deletions

View file

@ -8,7 +8,7 @@ import { ReceiptType } from '@signalapp/mock-server';
import { Bootstrap, debug, RUN_COUNT, DISCARD_COUNT } from './fixtures';
import { stats } from '../../util/benchmark/stats';
import { typeIntoInput } from '../helpers';
import { typeIntoInput, waitForEnabledComposer } from '../helpers';
const CONVERSATION_SIZE = 500; // messages
@ -86,7 +86,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const deltaList = new Array<number>();
for (let runId = 0; runId < RUN_COUNT + DISCARD_COUNT; runId += 1) {
debug('finding composition input and clicking it');
const input = await app.waitForEnabledComposer();
const input = await waitForEnabledComposer(window);
debug('entering message text');
await typeIntoInput(input, `my message ${runId}`);