mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 06:04:44 +03:00
73ca8ae0eb
PiperOrigin-RevId: 481941267
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;
|
|
}
|
|
}
|