mediawiki-extensions-Popups/tests/qunit
joakin e49103061e Don't reset interaction info when dwelling back to a link
When dwelling back to a link, previously a new LINK_DWELL action would
be sent and the reducer would reset the interaction as if it was a new
one.

This shouldn't happen, since dwelling back to the active link (from
the preview, for example) is not a new interaction, and should not
create a new interaction or hide and show the preview.

With this change, the preview reducer has the notion of new or repeat
interactions, and only resets state on new ones, and only sets
isUserDwelling when dwelling on a the link of the current interaction.

Also when the interaction is repeat, we guard on the action creator and
don't trigger the wait or the fetch request.

Change-Id: I71cde81cbfe50b6f955e562e7e5b57d0f920fdb9
2017-01-10 17:44:37 -08:00
..
ext.popups Don't reset interaction info when dwelling back to a link 2017-01-10 17:44:37 -08:00
ext.popups.core.test.js Add LINK_DWELL and LINK_ABANDON actions 2016-11-10 11:47:55 +00:00
ext.popups.desktopRenderer.test.js Directory structure should reflect the ResourceLoader definitions 2016-10-19 20:52:40 +00:00
ext.popups.renderer.article.test.js Remove optional survey link 2016-11-09 14:41:03 +00:00
ext.popups.schemaPopups.utils.test.js Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00