material-web/checkbox/harness.ts
Elizabeth Mitchell 27f7ea89ce feat(checkbox): refactor and simplify rendering/style logic
BREAKING CHANGE: Removed reducedTouchTarget. Instead, set the width and height on the checkbox.

PiperOrigin-RevId: 495087302
2022-12-13 11:59:05 -08:00

20 lines
425 B
TypeScript

/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Harness} from '../testing/harness.js';
import {Checkbox} from './lib/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')!;
}
}