Closed Bug 1833906 Opened 1 year ago Closed 1 year ago

Update the translation tests mocks to directly mock RemoteSettings

Categories

(Firefox :: Translations, task, P2)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

(Regressed 1 open bug)

Details

Attachments

(6 files)

This will make things like Bug 1820249 testable, where the tests need to test the download behavior.

Pushed by gtatum@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4a5ecd8c9eab
Rework the mocks for language identification r=nordzilla
https://hg.mozilla.org/integration/autoland/rev/860f3195b07f
Rework the mocks system for the translations engine; r=nordzilla
https://hg.mozilla.org/integration/autoland/rev/4b6db603e29d
Update the tests for the new mocking system; r=nordzilla
https://hg.mozilla.org/integration/autoland/rev/956e4235ca41
Drive-by fix for an unhandled test error; r=nordzilla
https://hg.mozilla.org/integration/autoland/rev/20af3d71d26b
Split up test browser_about_translations.js; r=nordzilla
https://hg.mozilla.org/integration/autoland/rev/273f32a0564f
Split up test browser_translations_panel.js; r=nordzilla

This is part 1/3 of the mock rework, the tests are updated in a later
patch. This rework was needed to properly expose the RemoteSettings API
for testing the icon state.

This is part 2/3 of the mock rework. The tests are updated in the next
patch.

This fixes the tests for the mock changes.

I am not sure if this behavior changed since this test was written, but
accessing the contentWindow throws an error now, rather than being
undefined. I updated the translations code to remove this error.

Regressions: 1833927
Regressions: 1833928
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: