Use typing helper in mock-tests

This commit is contained in:
trevor-signal 2024-04-03 13:17:39 -04:00 committed by GitHub
parent 257813265c
commit e96a1e4bc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 83 additions and 89 deletions

View file

@ -6,6 +6,7 @@ import { assert } from 'chai';
import * as durations from '../../util/durations';
import type { App, Bootstrap } from './fixtures';
import { initStorage, debug } from './fixtures';
import { typeIntoInput } from '../helpers';
describe('storage service', function (this: Mocha.Suite) {
this.timeout(durations.MINUTE);
@ -121,7 +122,7 @@ describe('storage service', function (this: Mocha.Suite) {
);
const input = composeArea.locator('[data-testid=CompositionInput]');
await input.type('hello stranger!');
await typeIntoInput(input, 'hello stranger!');
await input.press('Enter');
{