Bug: Intermittent toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | single tracking bug
Status: NEW
Priority: P5
Created: 2024-08-30 17:52:25+00:00
Resolved: 2025-02-24 06:45:25+00:00

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

---
```
[task 2024-08-30T17:24:02.486Z] 17:24:02     INFO - TEST-PASS | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | "true" == "true" - 
[task 2024-08-30T17:24:02.486Z] 17:24:02     INFO - Leaving test bound test_ad_attribution
[task 2024-08-30T17:24:02.487Z] 17:24:02     INFO - Entering test bound test_non_sponsored_attribution
[task 2024-08-30T17:24:02.488Z] 17:24: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/Some-Product/dp/VWXYZAB012" line: 0}]
[task 2024-08-30T17:24:02.489Z] 17:24:02     INFO - Waiting for sidebar to update.
[task 2024-08-30T17:24:02.490Z] 17:24:02     INFO - Waiting for product to be updated. Document: about:shoppingsidebar
[task 2024-08-30T17:24:02.491Z] 17:24:02     INFO - Sidebar updated for product: {"adsEnabled":true,"adsEnabledByUser":true,"autoOpenEnabled":false,"autoOpenEnabledByUser":true,"showOnboarding":false,"data":{"needs_analysis":false,"grade":"B","adjusted_rating":4.1},"productUrl":"https://example.com/Some-Product/dp/VWXYZAB012","isAnalysisInProgress":false}
[task 2024-08-30T17:24:02.491Z] 17:24:02     INFO - Buffered messages logged at 17:24:02
[task 2024-08-30T17:24:02.492Z] 17:24:02     INFO - Verifying recommendation placement event.
[task 2024-08-30T17:24:02.493Z] 17:24:02     INFO - Buffered messages finished
[task 2024-08-30T17:24:02.494Z] 17:24:02     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | should have recorded an event - 2 == 1 - 
[task 2024-08-30T17:24:02.495Z] 17:24:02     INFO - Stack trace:
[task 2024-08-30T17:24:02.495Z] 17:24:02     INFO - chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:test_non_sponsored_attribution/<:258
[task 2024-08-30T17:24:02.496Z] 17:24:02     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:121
[task 2024-08-30T17:24:02.496Z] 17:24:02     INFO - chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:test_non_sponsored_attribution:242
[task 2024-08-30T17:24:02.497Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-08-30T17:24:02.497Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-08-30T17:24:02.498Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-08-30T17:24:02.498Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-08-30T17:24:02.499Z] 17:24:02     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-08-30T17:24:02.499Z] 17:24:02     INFO - TEST-PASS | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | "shopping" == "shopping" - 
[task 2024-08-30T17:24:02.501Z] 17:24:02     INFO - TEST-PASS | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | "surface_ads_placement" == "surface_ads_placement" - 
[task 2024-08-30T17:24:02.501Z] 17:24:02     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-08-30T17:24:02.503Z] 17:24:02     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | "true" == "false" - 
[task 2024-08-30T17:24:02.503Z] 17:24:02     INFO - Stack trace:
[task 2024-08-30T17:24:02.504Z] 17:24:02     INFO - chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:test_non_sponsored_attribution/<:265
[task 2024-08-30T17:24:02.504Z] 17:24:02     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:121
[task 2024-08-30T17:24:02.504Z] 17:24:02     INFO - chrome://mochitests/content/browser/toolkit/components/shopping/test/browser/browser_shopping_ads_test.js:test_non_sponsored_attribution:242
[task 2024-08-30T17:24:02.505Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-08-30T17:24:02.505Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-08-30T17:24:02.505Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-08-30T17:24:02.505Z] 17:24:02     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-08-30T17:24:02.506Z] 17:24:02     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-08-30T17:24:02.506Z] 17:24:02     INFO - Waiting for ad impression event.
[task 2024-08-30T17:24:03.599Z] 17:24:03     INFO - TEST-PASS | toolkit/components/shopping/test/browser/browser_shopping_ads_test.js | Got ad impression event - true == true - 
```