@ember/test-helpers
Version:
Helpers for testing Ember.js applications
20 lines (17 loc) • 735 B
TypeScript
import { type Target } from './-target.ts';
/**
Fill the provided text into the `value` property (or set `.innerHTML` when
the target is a content editable element) then trigger `change` and `input`
events on the specified target.
@public
@param {string|Element|IDOMElementDescriptor} target the element, selector, or descriptor to enter text into
@param {string} text the text to fill into the target element
@return {Promise<void>} resolves when the application is settled
@example
<caption>
Emulating filling an input with text using `fillIn`
</caption>
fillIn('input', 'hello world');
*/
export default function fillIn(target: Target, text: string): Promise<void>;
//# sourceMappingURL=fill-in.d.ts.map