2022-06-17 19:34:49 +03:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright 2022 Google LLC
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-10-18 19:28:12 +03:00
|
|
|
import {Harness} from '../testing/harness.js';
|
2022-06-17 19:34:49 +03:00
|
|
|
|
2022-08-24 21:00:50 +03:00
|
|
|
import {Fab} from './lib/fab.js';
|
|
|
|
import {FabExtended} from './lib/fab-extended.js';
|
2022-06-17 19:34:49 +03:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
}
|