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

22 lines
460 B
TypeScript

/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Harness} from '../testing/harness.js';
import {Dialog} from './internal/dialog.js';
/**
* Test harness for dialog.
*/
export class DialogHarness extends Harness<Dialog> {
override async getInteractiveElement() {
await this.element.updateComplete;
return (
this.element.querySelector<HTMLElement>('[autocomplete]') ?? this.element
);
}
}