Files
firefox/browser/base/content/test/appUpdate/browser_updatesBasicPrompt.js
T

23 lines
575 B
JavaScript

add_task(async function testBasicPrompt() {
SpecialPowers.pushPrefEnv({set: [[PREF_APP_UPDATE_STAGING_ENABLED, true]]});
let updateParams = "showPrompt=1&promptWaitTime=0";
gUseTestUpdater = true;
await runUpdateTest(updateParams, 1, [
{
notificationId: "update-available",
button: "button",
beforeClick() {
checkWhatsNewLink("update-available-whats-new");
}
},
{
notificationId: "update-restart",
button: "secondarybutton",
cleanup() {
PanelUI.removeNotification(/.*/);
}
},
]);
});