material-web/button/harness.ts

20 lines
447 B
TypeScript
Raw Normal View History

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Harness} from '../testing/harness.js';
import {Button} from './internal/button.js';
/**
* Test harness for buttons.
*/
export class ButtonHarness extends Harness<Button> {
protected override async getInteractiveElement() {
await this.element.updateComplete;
return this.element.renderRoot.querySelector('.button') as HTMLElement;
}
}