Closed Bug 1541415 Opened 5 years ago Closed 5 years ago

Write tests to ensure the main search engines use the correct codes in all regions/locales

Categories

(Firefox :: Search, task)

task
Not set
normal
Points:
3

Tracking

()

RESOLVED FIXED
Firefox 69
Iteration:
69.1 - May 13 - 26
Tracking Status
firefox68 --- fixed
firefox69 --- fixed

People

(Reporter: standard8, Assigned: daleharvey)

References

Details

Attachments

(1 file)

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.

No longer regressed by: 1541414
Blocks: 1541417
Type: defect → task
Iteration: --- → 68.4 - Apr 29 - May 12
Assignee: nobody → dharvey
Type: task → defect
Type: defect → task
Iteration: 68.4 - Apr 29 - May 12 → 69.1 - May 13 - 26
Blocks: 1552188
Pushed by dharvey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b460e6b4e9e2
Add test to ensure engines send correct code. r=Standard8
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69

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.

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?

Flags: needinfo?(standard8)
Flags: needinfo?(dharvey)

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

Flags: needinfo?(dharvey)

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.

(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).

Flags: needinfo?(standard8)
Blocks: 1553124
No longer blocks: 1553124
Whiteboard: [checkin-needed-beta]
Whiteboard: [checkin-needed-beta]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: