expectByPolling() — vue Function Reference
Architecture documentation for the expectByPolling() function in e2eUtils.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 09bd69bd_f59a_2915_4005_7aa7799e0d71["expectByPolling()"] 74c9703b_0a18_7462_9820_16ae2926fb68["e2eUtils.ts"] 09bd69bd_f59a_2915_4005_7aa7799e0d71 -->|defined in| 74c9703b_0a18_7462_9820_16ae2926fb68 e2086c53_7c40_8ccc_1c5a_2ce4a6d2e31e["timeout()"] 09bd69bd_f59a_2915_4005_7aa7799e0d71 -->|calls| e2086c53_7c40_8ccc_1c5a_2ce4a6d2e31e style 09bd69bd_f59a_2915_4005_7aa7799e0d71 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
test/e2e/e2eUtils.ts lines 24–37
export async function expectByPolling(
poll: () => Promise<any>,
expected: string
) {
for (let tries = 0; tries < maxTries; tries++) {
const actual = (await poll()) || ''
if (actual.indexOf(expected) > -1 || tries === maxTries - 1) {
expect(actual).toMatch(expected)
break
} else {
await timeout(50)
}
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does expectByPolling() do?
expectByPolling() is a function in the vue codebase, defined in test/e2e/e2eUtils.ts.
Where is expectByPolling() defined?
expectByPolling() is defined in test/e2e/e2eUtils.ts at line 24.
What does expectByPolling() call?
expectByPolling() calls 1 function(s): timeout.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free