mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
31 lines
809 B
TypeScript
31 lines
809 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {CircularProgress} from './internal/circular-progress.js';
|
|
import {LinearProgress} from './internal/linear-progress.js';
|
|
|
|
/**
|
|
* Test harness for linear-progress.
|
|
*/
|
|
export class LinearProgressHarness extends Harness<LinearProgress> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.querySelector<HTMLElement>('.progress')!;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Test harness for circular-progress.
|
|
*/
|
|
export class CircularProgressHarness extends Harness<CircularProgress> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.querySelector<HTMLElement>('.progress')!;
|
|
}
|
|
}
|