summaryrefslogtreecommitdiffstats
path: root/browser/components/asrouter/tests/browser/browser_asrouter_infobar.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/asrouter/tests/browser/browser_asrouter_infobar.js')
-rw-r--r--browser/components/asrouter/tests/browser/browser_asrouter_infobar.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/browser/components/asrouter/tests/browser/browser_asrouter_infobar.js b/browser/components/asrouter/tests/browser/browser_asrouter_infobar.js
index b80b3ec7a4..a01b2cf14c 100644
--- a/browser/components/asrouter/tests/browser/browser_asrouter_infobar.js
+++ b/browser/components/asrouter/tests/browser/browser_asrouter_infobar.js
@@ -107,7 +107,7 @@ add_task(async function react_to_trigger() {
"Notification has default priority"
);
// Dismiss the notification
- notificationStack.currentNotification.closeButtonEl.click();
+ notificationStack.currentNotification.closeButton.click();
});
add_task(async function dismiss_telemetry() {
@@ -128,7 +128,7 @@ add_task(async function dismiss_telemetry() {
// Remove any IMPRESSION pings
dispatchStub.reset();
- infobar.notification.closeButtonEl.click();
+ infobar.notification.closeButton.click();
await BrowserTestUtils.waitForCondition(
() => infobar.notification === null,
@@ -204,7 +204,7 @@ add_task(async function prevent_multiple_messages() {
Assert.equal(dispatchStub.callCount, 2, "Impression count did not increase");
// Dismiss the first notification
- infobar.notification.closeButtonEl.click();
+ infobar.notification.closeButton.click();
Assert.equal(InfoBar._activeInfobar, null, "Cleared the active notification");
// Reset impressions count
@@ -218,6 +218,6 @@ add_task(async function prevent_multiple_messages() {
Assert.ok(InfoBar._activeInfobar, "activeInfobar is set");
Assert.equal(dispatchStub.callCount, 2, "Called twice with IMPRESSION");
// Dismiss the notification again
- infobar.notification.closeButtonEl.click();
+ infobar.notification.closeButton.click();
Assert.equal(InfoBar._activeInfobar, null, "Cleared the active notification");
});