Conversation
|
Well. That's an interesting result! It works every time locally. |
f689105 to
91fa3c2
Compare
70f4d51 to
ed785b2
Compare
|
Huh. I added a log to get some insight into what's happening, and it definitely appears to be failing on CI and working locally. I haven't seen the event get triggered on CI yet, yet it is always triggered when I run it locally, using exactly the same commands. I'm using a different version of Firefox than CI is 🤔 . But I'm guessing this is just some race condition. I guess there is no guarantee that anything async performed in |
|
I'll update this PR to test something that does work more reliably. We'll have to revisit this |
c5c18eb to
4f73122
Compare
|
I have updated this PR (and the description) to test for the first two Page events, rather than for the close event.
Nevermind, figured it out! I wasn't waiting for the Home page to finish loading. After |
4f73122 to
e0be6ef
Compare
An e2e test has been added that uses the new mock Segment server to verify that the three initial page metric events are sent correctly. Using the mock Segment server requires a special build with this mock Segment server hostname embedded, so a distinct job for building and running this test was required. As such, it was left out of the `run-all.sh` script.
e0be6ef to
7bbf94d
Compare
Builds ready [7bbf94d]
Page Load Metrics (458 ± 46 ms)
|
An e2e test has been added that uses the new mock Segment server to verify that the three initial page metric events are sent correctly.
Using the mock Segment server requires a special build with this mock Segment server hostname embedded, so a distinct job for building and running this test was required. As such, it was left out of the
run-all.shscript.