mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
20 lines
446 B
TypeScript
20 lines
446 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {Button} from './lib/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('.md3-button') as HTMLElement;
|
|
}
|
|
}
|