expectByPolling() — vue Function Reference
Architecture documentation for the expectByPolling() function in e2eUtils.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 81ea4799_28a7_0f97_bd3c_dc767ed75bb6["expectByPolling()"] 7f490d94_58cd_e86c_8fc2_64a91dccc110["timeout()"] 81ea4799_28a7_0f97_bd3c_dc767ed75bb6 -->|calls| 7f490d94_58cd_e86c_8fc2_64a91dccc110 style 81ea4799_28a7_0f97_bd3c_dc767ed75bb6 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
Calls
Source
Frequently Asked Questions
What does expectByPolling() do?
expectByPolling() is a function in the vue codebase.
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