MCPcopy
hub / github.com/angular/components / getRootHarnessLoader

Method getRootHarnessLoader

src/aria/tabs/testing/tabs-harness.ts:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 protected override async getRootHarnessLoader(): Promise<HarnessLoader> {
73 const host = await this.host();
74 const controlsId = await host.getAttribute('aria-controls');
75 const documentRoot = await this.documentRootLocatorFactory().rootHarnessLoader();
76 return await documentRoot.getChildLoader(`[ngTabPanel][id="${controlsId}"]`);
77 }
78}
79
80/** Harness for interacting with an Aria tabs container in tests. */

Callers 8

getChildLoaderFunction · 0.45
getAllChildLoadersFunction · 0.45
getHarnessFunction · 0.45
getHarnessOrNullFunction · 0.45
getHarnessAtIndexFunction · 0.45
getAllHarnessesFunction · 0.45
countHarnessesFunction · 0.45
hasHarnessFunction · 0.45

Calls 4

rootHarnessLoaderMethod · 0.80
getChildLoaderMethod · 0.80
getAttributeMethod · 0.65

Tested by

no test coverage detected