material-web/fab/harness.ts
Elizabeth Mitchell c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00

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;
}
}