Closed Bug 2029187 Opened 7 months ago Closed 7 months ago

browser_popupNotification_3.js Test#8 fails on repeat due to leftover anchor element

Categories

(Toolkit :: PopupNotifications and Notification Bars, task, P3)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

Test#8 in browser_popupNotification_3.js fails when run with --repeat 2.

The test creates a box element with id="test26-anchor" and appends it to PopupNotifications.iconBox, but never removes it during cleanup. On the second run, a new element with the same id is appended, resulting in two elements with id="test26-anchor". The notification's anchorElement getter uses iconBox.querySelector("#test26-anchor") which returns the old (first) element, so _showIcons sets the showing attribute on the stale element while the test checks the new one.

Fix: add anchor.remove() in the test cleanup.

Severity: -- → N/A
Type: defect → task
Priority: -- → P3
Depends on: 2029980
Blocks: 2029980
No longer depends on: 2029980
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: