mirror of
https://github.com/material-components/material-web.git
synced 2024-09-19 17:47:46 +03:00
73ca8ae0eb
PiperOrigin-RevId: 481941267
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;
|
|
}
|
|
}
|