mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
c390291687
PiperOrigin-RevId: 576601342
20 lines
444 B
TypeScript
20 lines
444 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {Fab} from './internal/fab.js';
|
|
|
|
/**
|
|
* Test harness for floating action buttons.
|
|
*/
|
|
export class FabHarness extends Harness<Fab> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.renderRoot.querySelector('.fab') as HTMLButtonElement;
|
|
}
|
|
}
|