Open Bug 1522902 Opened 2 years ago Updated 4 months ago

Make all tests initialize a search through a common UrlbarTestUtils method

Categories

(Firefox :: Address Bar, task, P3)

task
Points:
3

Tracking

()

People

(Reporter: mak, Unassigned)

References

Details

Currently tests can start querying the Urlbar in different ways, and they don't have a common path to listen for results and completion.
This means we need to expose lastQueryContextPromise from UrlbarInput, because when a test method is invoked it has no way to check if a query is running or complete.

Having something like UrlbarTestUtils.waitForQuery(stringOrFn); would allow to start listening for onQueryFinished before starting the query and properly manage the query life cycle inside UrlbarUtils.

Tentatively taking as I may do some of this as part of bug 1522489.

Assignee: nobody → standard8
Blocks: quantumbar-tests
No longer blocks: quantumbar

I forgot to comment on this. I think there's possibilities for simplification here, but it is going to be hard to do that whilst we still support the current address bar.

I think we should definitely do it, but not until after we remove the current address bar.

Assignee: standard8 → nobody
No longer blocks: quantumbar-tests
Depends on: quantumbar
Blocks: 1551227
No longer depends on: quantumbar
Points: --- → 2
Type: enhancement → task
Points: 2 → 3
You need to log in before you can comment on or make changes to this bug.