MCPcopy Create free account
hub / github.com/angular/angular / waitForText

Function waitForText

adev/src/content/examples/elements/e2e/src/app.e2e-spec.ts:13–16  ·  view source on GitHub ↗
(elem: ElementFinder)

Source from the content-addressed store, hash-verified

11 await elem.click();
12 };
13 const waitForText = async (elem: ElementFinder) => {
14 // Waiting for the element to have some text, makes the tests less flaky.
15 await browser.wait(async () => /\S/.test(await elem.getText()), 5000);
16 };
17
18 beforeEach(() => browser.get(''));
19

Callers 1

app.e2e-spec.tsFile · 0.85

Calls 3

waitMethod · 0.80
getTextMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected