2022-07-21 23:47:00 +03:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright 2021 Google LLC
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-10-18 19:28:12 +03:00
|
|
|
import {Harness} from '../testing/harness.js';
|
2022-07-21 23:47:00 +03:00
|
|
|
|
2023-07-21 21:19:42 +03:00
|
|
|
import {Button} from './internal/button.js';
|
2022-07-21 23:47:00 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Test harness for buttons.
|
|
|
|
*/
|
|
|
|
export class ButtonHarness extends Harness<Button> {
|
|
|
|
protected override async getInteractiveElement() {
|
|
|
|
await this.element.updateComplete;
|
2023-07-20 06:05:30 +03:00
|
|
|
return this.element.renderRoot.querySelector('.button') as HTMLElement;
|
2022-07-21 23:47:00 +03:00
|
|
|
}
|
|
|
|
}
|