Closed Bug 1992231 Opened 1 year ago Closed 7 months ago

Display Unsupported Detected Language Info Message in about:translations

Categories

(Firefox :: Translations, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Description

The about:translations design (internal only) has never displayed a proper info message if the detected language is not yet supported for translation.

Now that we are redesigning the UI, we should ensure that it has a proper UI info message if the detected language is not supported.

Priority: -- → P2
Blocks: 2004463

This commit removes the catch-all AnyEventDetail option from
existing about:translations tests. We can, and should, be fully
deterministic and specific about any event details that we assert.

about:translations has requirements that the focus outline should be
around the entire section, which may contain a textarea and a copy
button, for example. This commit attempts to move more of that handling
into the CSS, rather than the JavaScript code.

This commit makes our section-height assertions more rigorous,
rather than only asserting that the heights increased or decreased,
we now make assertions against the actual pixels.

This commit adds a new error message that shows within the
target section if a translation request fails.

Assignee: nobody → enordin
Attachment #9543195 - Attachment description: WIP: Bug 1992231 - Remove AnyEventDetail from about:translations tests r=#translations-reviewers! → Bug 1992231 - Remove AnyEventDetail from about:translations tests r=#translations-reviewers!
Status: NEW → ASSIGNED
Attachment #9543196 - Attachment description: WIP: Bug 1992231 - Clean up about:translations focus handling r=#translations-reviewers! → Bug 1992231 - Clean up about:translations focus handling r=#translations-reviewers!
Attachment #9543197 - Attachment description: WIP: Bug 1992231 - Improve about:translations section-height tests r=#translations-reviewers! → Bug 1992231 - Improve about:translations section-height tests r=#translations-reviewers!
Attachment #9543198 - Attachment description: WIP: Bug 1992231 - about:translations translation error message r=#translations-reviewers! → Bug 1992231 - about:translations translation error message r=#translations-reviewers!

This commit contains various miscellaneous fixes within
the Translations tests that should hopefully improve
intermittent test failures and better guard against
race conditions within the test code.

Attachment #9543195 - Attachment description: Bug 1992231 - Remove AnyEventDetail from about:translations tests r=#translations-reviewers! → Bug 1992231 - Remove AnyEventDetail from about:translations tests r=sfoster!
Attachment #9546490 - Attachment description: Bug 1992231 - Misc. Translations Tests Improvments r=#translations-reviewers! → Bug 1992231 - Misc. Translations Tests Improvments r=sfoster!
Attachment #9543196 - Attachment description: Bug 1992231 - Clean up about:translations focus handling r=#translations-reviewers! → Bug 1992231 - Clean up about:translations focus handling r=sfoster!
Attachment #9543197 - Attachment description: Bug 1992231 - Improve about:translations section-height tests r=#translations-reviewers! → Bug 1992231 - Improve about:translations section-height tests r=sfoster!
Attachment #9543198 - Attachment description: Bug 1992231 - about:translations translation error message r=#translations-reviewers! → Bug 1992231 - about:translations translation error message r=sfoster!
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b23f64fdfb98 https://hg.mozilla.org/integration/autoland/rev/2d97cc387177 Revert "Bug 1992231 - about:translations translation error message r=fluent-reviewers,desktop-theme-reviewers,bolsson,sfoster" for causing bc failures @ browser_MLSuggest_integration.js

This is part of a single backout that spanned multiple bugs.

In the patch stack, I increased the timeout when waiting for a mocked RemoteSettings model to download within our Translations tests, hoping that it might also help to reduce intermittent Translations test failures.

There are a few ml related tests that share our Remote Settings mocks. This test case happens to wait for the full duration of the timeout as part of the success path of the test case.

I've reverted the timeout change, and everything should hopefully be fine now.

I would one day like to either fully separate this code, or unify it in a way that ml doesn't rely on Translations under the hood, so that its more clear where the downstream consumers are.

Flags: needinfo?(enordin)
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: