material-web/navigationtab/harness.ts
Elizabeth Mitchell 73ca8ae0eb chore: use relative paths
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00

21 lines
497 B
TypeScript

/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Harness} from '../testing/harness.js';
import {NavigationTab} from './lib/navigation-tab.js';
/**
* Test harness for navigation tab elements.
*/
export class NavigationTabHarness extends Harness<NavigationTab> {
override async getInteractiveElement() {
await this.element.updateComplete;
return this.element.renderRoot.querySelector('.md3-navigation-tab') as
HTMLElement;
}
}