Closed Bug 2037635 Opened 6 months ago Closed 6 months ago

Prepare ai features tests for the SRD pref flip

Categories

(Firefox :: Settings UI, task)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox152 --- fixed
firefox153 --- fixed

People

(Reporter: hjones, Assigned: fterdal)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp])

Attachments

(2 external files)

We need to make sure our tests for AI features in preferences will pass with the SRD pref enabled or disabled. We need to:

  • create a new browser-srd.toml file for sync tests that duplicates the old /browser/components/preferences/tests/aiFeatures/browser.toml , but with dupe-manifest=true and the browser.settings-redesign.enabled pref set to true
  • register this manifest in browser/components/preferences/moz.build
  • remove any tests that already set browser.settings-redesign.enabled to true from the old browser.toml file since these don't need to work with the pref disabled
  • clean up any code setting the SRD pref from within the test files (this will be read from the manifest)
  • remove any tests from the new manifest that are only relevant to the old UI
  • fix any failing tests
  • add new tests if there are any obvious gaps
Blocks: 2037820
No longer blocks: srd-tests

The AI controls pane has always been config based, so this one should work as a duplicate of browser.toml exactly (with the pref flip)

Assignee: nobody → fterdal
Status: NEW → ASSIGNED

Duplicates the AI features browser-chrome manifest so the suite runs under
both browser.settings-redesign.enabled=false (legacy) and =true (SRD). Same
test files on both sides via dupe-manifest=true; the AI features pane is
config-based and renders identically under either pref state.

Also removes a stray no-op pushPrefEnv for "browser.settings-redesign.enable"
(typo, missing trailing "d") from browser_aiFeatures_visibility.js — the
manifest now owns the pref.

Attachment #9585361 - Attachment description: WIP: Bug 2037635 - Prepare AI features tests for the SRD pref flip → Bug 2037635 - Prepare AI features tests for the SRD pref flip r?mstriemer,hjones,#settings-reviewers!
Attachment #9585361 - Attachment description: Bug 2037635 - Prepare AI features tests for the SRD pref flip r?mstriemer,hjones,#settings-reviewers! → WIP: Bug 2037635 - Prepare AI features tests for the SRD pref flip r?mstriemer,hjones,#settings-reviewers!
Attachment #9585361 - Attachment description: WIP: Bug 2037635 - Prepare AI features tests for the SRD pref flip r?mstriemer,hjones,#settings-reviewers! → Bug 2037635 - Prepare AI features tests for the SRD pref flip r?mstriemer,hjones,#settings-reviewers!
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: This is to ensure that the testing is also run on the Beta branch.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: This patch is for running the AI tests without the SRD prefs, so there should be no user-facing changes.
  • Risk associated with taking this patch: low
  • Explanation of risk level: The tests already pass with or without the SRD pref flipped, so there shouldn't be any regressions, this is just a code re-organization patch.
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9589725 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Duplicates the AI features browser-chrome manifest so the suite runs under
both browser.settings-redesign.enabled=false (legacy) and =true (SRD). Same
test files on both sides via dupe-manifest=true; the AI features pane is
config-based and renders identically under either pref state.

Also removes a stray no-op pushPrefEnv for "browser.settings-redesign.enable"
(typo, missing trailing "d") from browser_aiFeatures_visibility.js — the
manifest now owns the pref.

Original Revision: https://phabricator.services.mozilla.com/D299886

Flags: in-testsuite+
Attachment #9589725 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

We noticed that the "qe-verify+" label was added. Can this issue be verified manually? If so, could you please provide specific steps for manual verification?

Flags: needinfo?(fterdal)

(In reply to Brindusa Tot, DTE from comment #8)

We noticed that the "qe-verify+" label was added. Can this issue be verified manually? If so, could you please provide specific steps for manual verification?

Removing the qe-verify+ since this is related to automated tests.

Flags: qe-verify-
Flags: qe-verify+
Flags: needinfo?(fterdal)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: