CompositionArea: Don't unconditionally apply draft contents if empty

This commit is contained in:
Scott Nonnenberg
2023-04-17 13:50:29 -07:00
committed by GitHub
parent cdc68d1c34
commit f93b4235d5
4 changed files with 17 additions and 12 deletions
+1 -1
View File
@@ -124,7 +124,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(250);
const input = await app.waitForEnabledComposer();
debug('entering message text');
await input.type(`my message ${runId}`);
+1 -1
View File
@@ -78,7 +78,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(250);
const input = await app.waitForEnabledComposer();
debug('entering message text');
await input.type(`my message ${runId}`);