Fix flaky printmanagement browser test
- The original cause of the flaky is because the page element was not ready by the time we try to query for elements within it. - The fix is to attach a promise to the instatiation of the page and to only continue with the test once the promise is resolved. This ensures that each step of the test is handled synchronously. Bug: 1068860 Test: browser_tests Change-Id: I0a30e2971107b44354603adbb0396ddfea3c218d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142951Reviewed-by:Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: jimmy gong <jimmyxgong@chromium.org> Cr-Commit-Position: refs/heads/master@{#757687}
Showing
Please register or sign in to comment