mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Use typing helper in mock-tests
This commit is contained in:
@@ -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');
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user