material-web/fab/harness.ts

23 lines
515 B
TypeScript
Raw Normal View History

/**
* @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;
}
}