Commit 4481af6
authored
Fix flaky autofocus stream test by waiting for the initial autofocus to settle (#1504)
Chrome's native autofocus processing for the page's [autofocus] button
can run after `page.goto` resolves. If the test's stream rendering happens
in between, the pending autofocus steals focus from the stream-appended
input. Wait for the initial autofocus to complete before proceeding.1 parent b67039e commit 4481af6
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | | - | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
0 commit comments