@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
19 lines • 700 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MatAutocomplete = void 0;
const element_1 = require("../element");
/**
* Implementation dedicated to angular / TestBed.
*/
class MatAutocomplete extends element_1.O3rElement {
constructor(sourceElement) {
super(sourceElement);
}
/** @inheritdoc */
async selectByValue(value, _timeout) {
await this.setValue(value);
return this.sourceElement.triggerEventHandler('change', { target: this.sourceElement.nativeElement, preventDefault: () => { }, stopPropagation: () => { } });
}
}
exports.MatAutocomplete = MatAutocomplete;
//# sourceMappingURL=autocomplete-material.js.map