Write tests to ensure the main search engines use the correct codes in all regions/locales
Categories
(Firefox :: Search, task)
Tracking
()
People
(Reporter: standard8, Assigned: daleharvey)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
We need to add some unit tests to ensure that we have the correct codes for the main search engines present in all region/locales.
This should extend the work done in bug 1541210.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Depends on D31545
Comment 3•5 years ago
|
||
bugherder |
Comment 4•5 years ago
|
||
You're keeping the TB search engines in mind when tightening your tests?
Looks like you're testing something for specific Google "locales"
https://hg.mozilla.org/mozilla-central/rev/b460e6b4e9e2a54e616e6517d6091dd2a44b8c9d#l8.17
which we don't have:
https://searchfox.org/comm-central/source/mail/components/search/extensions/google
So the test will most likely fail for us now.
Comment 5•5 years ago
|
||
As predicted, the Google, Bing, DDG and Yandex tests all fail since we don't have the partner codes, like MOZSBR or client=firefox-b-1-d. Any suggestions other than just switching off all the tests?
Assignee | ||
Comment 6•5 years ago
|
||
So these tests are specifically testing the configuration, not that the engines work but that they exist in the regions and send the correct codes etc particularly focussing on the ones we have a relationship with.
Since that doesnt apply to Thunderbird, I am not sure there is a downside to turning these tests off, they arent really relevant imo
Comment 7•5 years ago
|
||
Well, I thought the region test was useful for Thunderbird. Other than that, this really should be refactored. You test a browser-specific configuration in a toolkit test. That's not right.
Reporter | ||
Comment 8•5 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #7)
Well, I thought the region test was useful for Thunderbird. Other than that, this really should be refactored. You test a browser-specific configuration in a toolkit test. That's not right.
The intention for us to to use these across Desktop and Android, that's why we put them there in the first place (since our requirements for those are highly similar).
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Description
•