material-web/fab/harness.ts
Elizabeth Mitchell 73ca8ae0eb chore: use relative paths
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00

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