mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 09:16:58 -10:00
23 lines
575 B
JavaScript
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(/.*/);
|
|
}
|
|
},
|
|
]);
|
|
});
|