Closed Bug 1786927 Opened 2 years ago Closed 2 years ago

Consolidate the way we trigger autocomplete popup in tests

Categories

(Toolkit :: Form Manager, task, P3)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: issammani, Assigned: issammani)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In D155251 we tackled removing redundant definitions of essentially the same function for showing the autocomplete popup. We then noticed a common pattern in both form history and password manager tests:

input.focus() // optional
const promisePopupShown = promiseACShown();
synthesizeKey("KEY_ArrowDown");
await promisePopupShown; // optionally retrieve the return value 

This behavior should ideally live inside a function and be used throughout our test cases in form history and password manager.

Blocks: 1737329
Assignee: nobody → imani
Attachment #9293264 - Attachment description: WIP: Bug 1786927 - Consolidate the way we trigger autocomplete popup in tests. r=#credential-management-reviewers → Bug 1786927 - Consolidate the way we trigger autocomplete popup in tests. r=#credential-management-reviewers
Pushed by imani@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6edb3eb1b48f Consolidate the way we trigger autocomplete popup in tests. r=credential-management-reviewers,sgalich
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: