AC
- When the user clicks the (i) button and the popup is displayed, the time taken for the popup to be displayed is tracked
When the user opens the accordion and info is displayed, the time taken for the info to be displayed is tracked- If the accordion is rendered as open, the time taken between page load and the info being displayed is tracked
QA
AC 1
- Navigate to /wiki/Special:RecentChanges
- Click on the (i) button next to an IP
- Wait for the popup to be displayed
- Observe that an HTTP POST request is made to a URL like /beacon/statsv?MediaWiki.ipinfo_popup_delay=xxxms
- Click on the same (i) button
- Observe that no HTTP POST request is made to a URL like /beacon/statsv
AC 3
- Navigate to /wiki/Special:Contributions/$ip
- If the IP Information info box is not expanded, then expand it and refresh the page
- Wait for the info box to render
- Observe than an HTTP POST request is made to a URL like /beacon/statsv?mediaWiki.ipinfo_accordion_delay=xxxms
Notes
AC 1, 2, 3 can all be recorded as timers in Graphite using the following JavaScript snippet:
mw.track( 'timer.MediaWiki.ipinfo_popup_delay', foo ); // Or... mw.track( 'timer.MediaWiki.ipinfo_accordion_delay', bar );

