mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +03:00
BREAKING CHANGE: Rename `@material/web/checkbox/lib` to `@material/web/checkbox/internal`. Prefer not using internal files. PiperOrigin-RevId: 550034503
20 lines
430 B
TypeScript
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')!;
|
|
}
|
|
}
|