Closed
Bug 971107
Opened 11 years ago
Closed 7 years ago
Tests for snippets
Categories
(Firefox for Android Graveyard :: Testing, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Margaret, Unassigned)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
We have testHomeBanner to test the basic home banner functionality, but we should add some tests that are specific to snippets.
Setting up this test will involve quite a few things:
* Set "browser.snippets.enabled" to true (disabled by default in test profile)
* Set "browser.snippets.countryCode" to "US" (just for testing)
* Set "browser.snippets.geoLastUpdate" to now (so that we don't try updating)
* Set "browser.snippets.updateUrl" to some local test file (and create that test file)
Then we need to trigger the snippets to update, maybe we can just do that by making ""browser.snippets.updateInterval" really low, but that doesn't seem totally reliable. Perhaps we should observe a new test notification in Snippets.js.
Then to actually test things, we should open about:home and check that the snippet is shown in the home banner. We can also test that clicking on the banner will open a specific URL.
Reporter | ||
Comment 1•9 years ago
|
||
For more on testing, see this wiki page:
https://wiki.mozilla.org/Mobile/Fennec/Android/Testing
Assignee: margaret.leibovic → nobody
Mentor: margaret.leibovic
Whiteboard: [lang=js]
Reporter | ||
Comment 2•9 years ago
|
||
I finally added a test in bug 1227743!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 3•9 years ago
|
||
I want to land the patch in bug 1227743, but I still haven't figured out issues with the test failures on try. I'm going to reopen this bug and do that investigation here.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Reporter | ||
Comment 4•9 years ago
|
||
Reporter | ||
Comment 5•9 years ago
|
||
(In reply to :Margaret Leibovic from comment #4)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=87895419e8a0
I tried simplifying the test, but it's still timing out :(
I suppose I need to make a bunch of try runs with various things commented out.
Assignee: nobody → margaret.leibovic
Reporter | ||
Updated•9 years ago
|
Mentor: margaret.leibovic
Reporter | ||
Comment 6•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/60280/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/60280/
Reporter | ||
Comment 7•8 years ago
|
||
I never ended up fixing this test to run properly in automation, but this patch should be useful if anyone works on snippets again.
Assignee: margaret.leibovic → nobody
Whiteboard: [lang=js]
Comment 8•7 years ago
|
||
Mass closing Firefox for Android :: Testing bugs with no progress in 2017.
If this bug is important to you, please re-open.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 7 years ago
Resolution: --- → WONTFIX
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•