material-web/checkbox/harness.ts
Andrew Jakubowicz c4ac9f73d9 fix(checkbox)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/checkbox/lib` to `@material/web/checkbox/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550034503
2023-07-21 13:25:47 -07:00

20 lines
430 B
TypeScript

/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Harness} from '../testing/harness.js';
import {Checkbox} from './internal/checkbox.js';
/**
* Test harness for checkbox.
*/
export class CheckboxHarness extends Harness<Checkbox> {
override async getInteractiveElement() {
await this.element.updateComplete;
return this.element.renderRoot.querySelector('input')!;
}
}