mozilla-jetpack / jpm

Jetpack Manager for Node.js
https://www.npmjs.org/package/jpm
Mozilla Public License 2.0
164 stars 75 forks source link

Running test broken on latest nightly #613

Open freaktechnik opened 7 years ago

freaktechnik commented 7 years ago

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.

kumar303 commented 7 years ago

This might be related to https://github.com/mozilla/web-ext/issues/970

freaktechnik commented 7 years ago

Shouldn't. The issue, from what I understand of the error and what I've observed when running tests locally, is that there's an extra tab and the awesomebar is open (which actually bugs out some stuff, because it's a popup that stays open...)