mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1702330 - Fix browser_aboutNewTab_defaultBrowserNotification.js proton infobars r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D111356
This commit is contained in:
parent
647c06ab11
commit
65c63009c9
@ -154,7 +154,9 @@ add_task(async function clicking_button_on_notification_calls_setAsDefault() {
|
||||
!shellService.isDefaultBrowser(),
|
||||
"should not be default prior to clicking button"
|
||||
);
|
||||
let button = notification.querySelector(".notification-button");
|
||||
let button = notification.buttonContainer.querySelector(
|
||||
".notification-button"
|
||||
);
|
||||
button.click();
|
||||
ok(
|
||||
shellService.isDefaultBrowser(),
|
||||
@ -248,8 +250,7 @@ add_task(async function clicking_dismiss_disables_default_browser_checking() {
|
||||
"Notification should be default browser"
|
||||
);
|
||||
|
||||
let closeButton = notification.querySelector(".close-icon");
|
||||
closeButton.click();
|
||||
notification.closeButton.click();
|
||||
ok(
|
||||
!Services.prefs.getBoolPref("browser.shell.checkDefaultBrowser"),
|
||||
"checkDefaultBrowser bar pref should be false after dismissing notification"
|
||||
|
Loading…
Reference in New Issue
Block a user