Commit 75acde2
committed
E2E: leave no navigation in flight when authenticate() returns
Calypso home hands a logged-in user over to the Dashboard on another host,
and that navigation starts after the load event. A spec that authenticates
with waitUntilStable false and navigates straight away raced it and lost:
reader__view failed both its attempts on both devices with ERR_ABORTED on
the goto to /reader, with the Dashboard shell on screen.
The prime-logins project hid this. It logged in as the account before the
suite, so by the time the spec ran the container had served the same pages
already and the hand-over fired earlier than the spec's own navigation.
Such a caller navigates itself next, so authenticate() no longer loads
Calypso home for it, and it waits for the URL to stop changing before it
returns.1 parent d67bd60 commit 75acde2
1 file changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
42 | 68 | | |
43 | 69 | | |
44 | 70 | | |
| |||
79 | 105 | | |
80 | 106 | | |
81 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
82 | 111 | | |
83 | 112 | | |
84 | 113 | | |
85 | 114 | | |
86 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
87 | 118 | | |
88 | 119 | | |
89 | 120 | | |
| |||
92 | 123 | | |
93 | 124 | | |
94 | 125 | | |
| 126 | + | |
| 127 | + | |
95 | 128 | | |
96 | 129 | | |
97 | 130 | | |
| |||
0 commit comments