mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
22 lines
560 B
TypeScript
22 lines
560 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {IconButton} from './lib/icon-button.js';
|
|
import {IconButtonToggle} from './lib/icon-button-toggle.js';
|
|
|
|
/**
|
|
* Test harness for icon buttons.
|
|
*/
|
|
export class IconButtonHarness extends Harness<IconButton|IconButtonToggle> {
|
|
protected override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.renderRoot.querySelector('.md3-icon-button') as
|
|
HTMLElement;
|
|
}
|
|
}
|