Closed Bug 1883355 Opened 3 months ago Closed 3 months ago

[wdspec] Create test for recommended preferences of protocols supported by the Remote Agent

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
3

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:m10])

Attachments

(3 files)

This is a follow-up from bug 1882748 which requires some extra wdspec tests for the various Remote Agent protocols. It should iterate over all the remote.active-protocols values and test that the common recommended preferences are always applied.

The tests aren't that easy to write because:

  • We cannot use Marionette (WebDriver classic) to start the browser because it would have already set these preferences
  • We should use a new profile with the common user preferences as defined by wptrunner
  • Transfer these common user preferences via the full_configuration to pytest
  • Allow the Browser class (and fixture) to accept a new_profile argument and set the default set of preferences
Blocks: 1883841
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Points: --- → 3
Priority: -- → P2
Whiteboard: [webdriver:m10]

We have actually set all the recommended preferences, including remote.prefs.recommended.applied one. However, despite writing the initial batch of preferences to the file, the one we need isn't there yet. Consequently, Firefox will eventually rewrite the preferences, and we must wait until then.

I've pushed another try build:
https://treeherder.mozilla.org/jobs?repo=try&revision=9818d27ab7ee8526e0dde01f098025d866ce3192

Attachment #9389606 - Attachment description: Bug 1883355 - [wdspec] Refactor Mozilla specific fixtures for additional helpers. → WIP: Bug 1883355 - [wdspec] Refactor Mozilla specific fixtures for additional helpers.
Attachment #9389607 - Attachment description: Bug 1883355 - [wdspec] Add a fixture to create a fresh Firefox profile without cloning current preferences. → WIP: Bug 1883355 - [wdspec] Add a fixture to create a fresh Firefox profile without cloning current preferences.
Attachment #9389608 - Attachment description: Bug 1883355 - [wdspec] Added Mozilla specific test for recommended preferences for Remote Agent. → WIP: Bug 1883355 - [wdspec] Added Mozilla specific test for recommended preferences for Remote Agent.
Attachment #9389606 - Attachment description: WIP: Bug 1883355 - [wdspec] Refactor Mozilla specific fixtures for additional helpers. → Bug 1883355 - [wdspec] Refactor Mozilla specific fixtures for additional helpers.
Attachment #9389607 - Attachment description: WIP: Bug 1883355 - [wdspec] Add a fixture to create a fresh Firefox profile without cloning current preferences. → Bug 1883355 - [wdspec] Add a fixture to create a fresh Firefox profile without cloning current preferences.
Attachment #9389608 - Attachment description: WIP: Bug 1883355 - [wdspec] Added Mozilla specific test for recommended preferences for Remote Agent. → Bug 1883355 - [wdspec] Added Mozilla specific test for recommended preferences for Remote Agent.
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5e813fc56c68
[wdspec] Refactor Mozilla specific fixtures for additional helpers. r=webdriver-reviewers,jgraham
https://hg.mozilla.org/integration/autoland/rev/2208179cab4b
[wdspec] Add a fixture to create a fresh Firefox profile without cloning current preferences. r=webdriver-reviewers,jgraham
https://hg.mozilla.org/integration/autoland/rev/12faf3d7baff
[wdspec] Added Mozilla specific test for recommended preferences for Remote Agent. r=webdriver-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: