mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +03:00
22 lines
460 B
TypeScript
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
|
|
);
|
|
}
|
|
}
|