mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix flakey edits mock test
This commit is contained in:
@@ -168,7 +168,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
const start = Date.now();
|
||||
|
||||
// test
|
||||
await typeIntoInput(SearchBar, searchContact.profileName);
|
||||
await typeIntoInput(SearchBar, searchContact.profileName, '');
|
||||
await CreateCallLink.waitFor({ state: 'hidden' }); // hides when searching
|
||||
await expect(OtherCallListItems).not.toBeAttached();
|
||||
await sendCallEventSync(
|
||||
|
||||
@@ -219,7 +219,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
});
|
||||
|
||||
debug('entering message text');
|
||||
await typeIntoInput(input, `my message ${runId}`);
|
||||
await typeIntoInput(input, `my message ${runId}`, '');
|
||||
await input.press('Enter');
|
||||
|
||||
debug('waiting for message on server side');
|
||||
|
||||
@@ -89,7 +89,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
const input = await waitForEnabledComposer(window);
|
||||
|
||||
debug('entering message text');
|
||||
await typeIntoInput(input, `my message ${runId}`);
|
||||
await typeIntoInput(input, `my message ${runId}`, '');
|
||||
await input.press('Enter');
|
||||
|
||||
debug('waiting for message on server side');
|
||||
|
||||
Reference in New Issue
Block a user