Bug: Intermittent browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Found the expected number of entries - 1 == 2 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2022-01-10 16:42:18+00:00
Resolved: 2022-02-24 02:10:59+00:00

**Filed by:** abutkovits [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=363595218&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/eGhhemxLT9S8a7rWbV5rIA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-01-10T16:27:02.623Z] 16:27:02     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have stored at least this amount of typing time. - 30 > 0 - 
[task 2022-01-10T16:27:02.623Z] 16:27:02     INFO - reload
[task 2022-01-10T16:27:02.624Z] 16:27:02     INFO - Found 1 interactions:
[task 2022-01-10T16:27:02.624Z] 16:27:02     INFO -  [{"url":"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html","referrerUrl":null,"keypresses":9,"typingTime":30,"totalViewTime":360,"scrollingTime":0,"scrollingDistance":0}]
[task 2022-01-10T16:27:02.624Z] 16:27:02     INFO - Buffered messages finished
[task 2022-01-10T16:27:02.625Z] 16:27:02     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Found the expected number of entries - 1 == 2 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js :: assertDatabaseValues :: line 71
[task 2022-01-10T16:27:02.626Z] 16:27:02     INFO - Stack trace:
[task 2022-01-10T16:27:02.626Z] 16:27:02     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:assertDatabaseValues:71
[task 2022-01-10T16:27:02.626Z] 16:27:02     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have saved the page into the database - "https://example.com/browser/browser/components/places/tests/browser/keyword_form.html" == "https://example.com/browser/browser/components/places/tests/browser/keyword_form.html" - 
[task 2022-01-10T16:27:02.627Z] 16:27:02     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have saved the keypresses into the database - 9 == 9 - 
[task 2022-01-10T16:27:02.628Z] 16:27:02     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have stored at least this amount of typing time. - 30 > 0 - 
[task 2022-01-10T16:27:02.628Z] 16:27:02     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-01-10T16:27:02.629Z] 16:27:02     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:79 - TypeError: can't access property "url", actual is undefined
[task 2022-01-10T16:27:02.629Z] 16:27:02     INFO - Stack trace:
[task 2022-01-10T16:27:02.629Z] 16:27:02     INFO - assertDatabaseValues@chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:79:1
[task 2022-01-10T16:27:02.630Z] 16:27:02     INFO - Leaving test bound test_typing_and_reload
[task 2022-01-10T16:27:02.630Z] 16:27:02     INFO - Entering test bound test_switch_tabs_no_typing
[task 2022-01-10T16:27:02.631Z] 16:27:02     INFO - GECKO(2011) | console.debug: InteractionsManager: "Database reset"
[task 2022-01-10T16:27:02.631Z] 16:27:02     INFO - GECKO(2011) | console.debug: InteractionsManager: "Tab switched"
[task 2022-01-10T16:27:02.631Z] 16:27:02     INFO - GECKO(2011) | console.debug: InteractionsManager: "No interaction to update"
[task 2022-01-10T16:27:02.632Z] 16:27:02     INFO - GECKO(2011) | console.debug: InteractionsManager: "Tracking a new interaction" ({isActive:true, url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0)})
[task 2022-01-10T16:27:02.717Z] 16:27:02     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://example.com/browser" line: 0}]
[task 2022-01-10T16:27:03.007Z] 16:27:03     INFO - GECKO(2011) | console.debug: InteractionsManager: "Tracking a new interaction" ({isActive:false, url:"https://example.com/browser", referrer:(void 0)})
[task 2022-01-10T16:27:03.031Z] 16:27:03     INFO - Switch to second tab
[task 2022-01-10T16:27:03.050Z] 16:27:03     INFO - GECKO(2011) | console.debug: InteractionsManager: "Tab switched"
[task 2022-01-10T16:27:03.101Z] 16:27:03     INFO - GECKO(2011) | console.debug: InteractionsManager: "Add to store: " ({url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0), totalViewTime:687.498517, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1641832022361, updated_at:1641832023099})
[task 2022-01-10T16:27:03.118Z] 16:27:03     INFO - GECKO(2011) | console.debug: InteractionsManager: "Preparing interaction for storage" ({url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0), totalViewTime:687.498517, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1641832022361, updated_at:1641832023099})
[task 2022-01-10T16:27:03.121Z] 16:27:03     INFO - GECKO(2011) | console.debug: InteractionsManager: "Storing 1 entries in the database"
[task 2022-01-10T16:27:03.126Z] 16:27:03     INFO - GECKO(2011) | console.debug: SnapshotsManager: "Testing 1 potential snapshots"
[task 2022-01-10T16:27:03.134Z] 16:27:03     INFO - GECKO(2011) | console.debug: SnapshotsManager: "Inserted 0 snapshots"
[task 2022-01-10T16:27:03.138Z] 16:27:03     INFO - Found 1 interactions:
[task 2022-01-10T16:27:03.138Z] 16:27:03     INFO -  [{"url":"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html","referrerUrl":null,"keypresses":0,"typingTime":0,"totalViewTime":687,"scrollingTime":0,"scrollingDistance":0}]
[task 2022-01-10T16:27:03.140Z] 16:27:03     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Found the expected number of entries - 1 == 1 
```