Page MenuHomePhabricator

[Regression] Sidebar open state is no longer persistent
Closed, ResolvedPublic3 Estimated Story Points

Description

  • Go to fr.wikipedia.org, the sidebar menu should be open
  • Click hamburger icon to hide the sidebar.
  • Confirm a preference is saved to the API
  • Hard refresh the page

Expected: sidebar is still hidden
Actual: sidebar is open

Developer notes

SkinVector::isSidebarVisible alway seems to return false.

I believe we (I) broke the registration of the preference in onGetPreferences in I7454d8f1cfdef81e7f3df476d8ce86736b46fff2

Probably worth adding a UI regression test for this.

Related Objects

Event Timeline

nray changed the point value for this task from 3 to 2.Apr 13 2022, 4:49 PM
nray subscribed.
This comment was removed by nray.
nray changed the point value for this task from 2 to 3.

Estimated as a medium. Not sure if a visual regression test is worth it at this point given this would require setting up a test with interactions. While doable, I'd prefer to keep the tests cheap with no interactions right now until we better understand whether this kind of bug is better suited for a unit test, end-to-end, or visual regression test.

Change 781048 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Restore persistent sidebar

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

Change 781048 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Restore persistent sidebar

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

@ovasileva in the screengrab below when I close the sidebar (the second half of the video) and do a hard reload, it comes back open. I cannot recreate this consistently. I was able to see it more often when I throttled the connection.

Screen Recording 2022-04-20 at 8.02.59 AM.mov.gif (1×1 px, 2 MB)

@ovasileva in the screengrab below when I close the sidebar (the second half of the video) and do a hard reload, it comes back open. I cannot recreate this consistently. I was able to see it more often when I throttled the connection.

Screen Recording 2022-04-20 at 8.02.59 AM.mov.gif (1×1 px, 2 MB)

I think that if it's only while throttling the connection, it should be okay. @Jdlrobson - any thoughts on this one/what is causing it?

@Edtadros - discussed this and this behavior is expected when conneciton is throttled. Resolving this one.