Reduce flake on edit mock test

This commit is contained in:
trevor-signal
2023-12-06 19:44:08 -05:00
committed by GitHub
parent d6db3f7943
commit ecf5019cd6
2 changed files with 22 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ import { drop } from '../../util/drop';
import { strictAssert } from '../../util/assert';
import { generateAci } from '../../types/ServiceId';
import { IMAGE_GIF } from '../../types/MIME';
import { type } from '../helpers';
export const debug = createDebug('mock:test:edit');
@@ -505,7 +506,7 @@ describe('editing', function (this: Mocha.Suite) {
.click();
await page.getByRole('menuitem', { name: 'Edit' }).click();
const input = await app.waitForEnabledComposer();
await input.type(additionalText);
await type(input, additionalText);
await input.press('Enter');
}
const { contacts, desktop } = bootstrap;