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