mirror of
https://github.com/material-components/material-web.git
synced 2024-09-21 02:27:12 +03:00
73ca8ae0eb
PiperOrigin-RevId: 481941267
23 lines
515 B
TypeScript
23 lines
515 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {Fab} from './lib/fab.js';
|
|
import {FabExtended} from './lib/fab-extended.js';
|
|
|
|
|
|
/**
|
|
* Test harness for floating action buttons.
|
|
*/
|
|
export class FabHarness extends Harness<Fab|FabExtended> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.renderRoot.querySelector('.md3-fab') as
|
|
HTMLButtonElement;
|
|
}
|
|
}
|