fix(e2e): temp fix for appAction test flake (#6226)

This commit is contained in:
Jesse Mazzella 2023-01-30 10:55:24 -08:00 committed by GitHub
parent 21ce013df2
commit 9c784398b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,6 +235,12 @@ async function expandEntireTree(page, treeName = "Main Tree") {
while (await collapsedTreeItems.count() > 0) {
await collapsedTreeItems.nth(0).click();
// FIXME: Replace hard wait with something event-driven.
// Without the wait, this fails periodically due to a race condition
// with Vue rendering (loop exits prematurely).
// eslint-disable-next-line playwright/no-wait-for-timeout
await page.waitForTimeout(200);
}
}