Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Running test broken on latest nightly #613

@freaktechnik

Description

@freaktechnik

New profiles now open a tab about the privacy policy and the awesomebar hints about using it for search. Both of these open extra windows that can break tests, since tests expect no extra tabs and windows to be open after them (i.e. only the main window with only the start page).

The first test will fail with "Should not be any unexpected tabs open".

A temporary workaround is to add require("sdk/test/utils").cleanUI(); before any tests are ran. Note that this is async and a faster test may run before it's done. So instead you might want to wait for the promise to resolve in your first test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions