Page MenuHomePhabricator

[follow up] Pointer Indicator (popupNotification) needs Javascript tests
Closed, ResolvedPublic2 Estimated Story Points

Description

<follow up task> Add tests to cover the changes and new introductions from the patches related to https://phabricator.wikimedia.org/T311160. During that task to deliver early we descoped this, but tests are important to make sure that we can maintain this and it won't break in future.

Event Timeline

@Mabualruz: Assuming this task is about the Vector2022 code base, hence adding that project tag so other people who don't know or don't care about team tags can also find this task when searching via projects. Please set appropriate project tags when possible. Thanks!

@Aklapper Thanks for pointing this out I will do that from now and on

Jdlrobson renamed this task from Pointer Indicator Javascript tests to [follow] Pointer Indicator needs Javascript tests.Mar 29 2023, 6:07 PM
Jdlrobson renamed this task from [follow] Pointer Indicator needs Javascript tests to [follow up] Pointer Indicator needs Javascript tests.
Jdlrobson renamed this task from [follow up] Pointer Indicator needs Javascript tests to [follow up] Pointer Indicator (popupNotification) needs Javascript tests.Mar 30 2023, 5:14 PM
ovasileva set the point value for this task to 2.Mar 30 2023, 5:17 PM
ovasileva lowered the priority of this task from High to Medium.Apr 10 2023, 5:29 PM
ovasileva lowered the priority of this task from Medium to Low.Apr 10 2023, 5:35 PM

I believe popupNotifications.js also has a memory leak because we create new popup widgets each time we show the popup, and since the OOUI popupwidget doesnt have a destructor, we just remove the popup from the DOM. Could we also fix that with this task? I believe the simplest solution is to store an array of all popupWidgets, so that we dont reinitialize new widgets each time a popup notification is created

Change 909425 had a related patch set uploaded (by Mabualruz; author: Mabualruz):

[mediawiki/skins/Vector@master] popupNotification Javascript tests

https://gerrit.wikimedia.org/r/909425

Change 909425 merged by jenkins-bot:

[mediawiki/skins/Vector@master] popupNotification Javascript tests

https://gerrit.wikimedia.org/r/909425

Looks great! Thanks all for your work on this!