Closed Bug 971107 Opened 11 years ago Closed 7 years ago

Tests for snippets

Categories

(Firefox for Android Graveyard :: Testing, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Margaret, Unassigned)

References

Details

Attachments

(1 file)

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.
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]
I finally added a test in bug 1227743!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
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 → ---
Depends on: 1227743
(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
Mentor: margaret.leibovic
Blocks: 1281527
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]
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 ago7 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: