mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
c390291687
PiperOrigin-RevId: 576601342
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
|
|
);
|
|
}
|
|
}
|