mediawiki-extensions-Popups/tests/qunit/ext.popups
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
..
changeListeners Update the settings enabled radio with the enabled state 2016-12-16 10:29:34 +00:00
reducers Don't reset interaction info when dwelling back to a link 2017-01-10 17:44:37 -08:00
stubs Hygiene: Remove experiment-related code 2016-12-16 10:59:47 +00:00
actions.test.js Don't reset interaction info when dwelling back to a link 2017-01-10 17:44:37 -08:00
changeListener.test.js Add footer link change listener 2016-11-16 15:20:34 +00:00
checkin.test.js Fix checkin tests to use fake timers 2017-01-10 09:31:32 -08:00
counts.test.js Include user's preview count in BOOT action 2016-12-12 13:01:44 +00:00
eventLoggingChangeListener.test.js Initial Popups logging implementation 2016-12-12 13:01:44 +00:00
gateway.test.js previews: Add generic fallback preview 2016-12-02 12:02:43 +00:00
integration.test.js Don't hide preview when user dwells on link 2017-01-10 17:43:55 -08:00
isEnabled.test.js Hygiene: Make mw.popups#isEnabled return boolean 2016-12-16 10:59:47 +00:00
pageVisibility.test.js Add reading depth 2016-12-21 15:08:20 -05:00
processLinks.test.js Hygiene: #processLinks Improve wording on tests 2016-11-30 17:01:54 +00:00
schema.test.js Initial Popups logging implementation 2016-12-12 13:01:44 +00:00
settingsDialog.test.js Update the settings enabled radio with the enabled state 2016-12-16 10:29:34 +00:00
userSettings.test.js Hygiene: Remove experiment-related code 2016-12-16 10:59:47 +00:00
wait.test.js Render previews 2016-11-24 18:07:03 +00:00