mediawiki-extensions-Popups/tests/node-qunit
Sam Smith 56aeeccb0d reducers: Make LINK_CLICK finalize but not close
... the interaction.

Following on from Iccba3c4c, LINK_CLICK shouldn't be considered the end
of an interaction because the link or preview can still be abandoned by
the user. Unlike ABANDON_END and LINK_DWELL, therefore, LINK_CLICK
musn't destroy the interaction but indicate that no more events should
be enqueued for the interaction.

More concretely, if the user has clicked the link or the preview, then
a "dwelledButAbandoned" or "dismissed" event shouldn't be logged.

Changes:
* Distinguish between "finalizing" and "closing" an interaction, where
  the latter is the current behavior of ABANDON_END, LINK_DWELL, and
  LINK_CLICK, in the eventLogging reducer and associated tests.
* If the interaction is finalized, then either the "dwelledButAbandoned"
  or "dismissed" events shouldn't be logged.

Bug: T162924
Change-Id: I09d8776da992053f89a77508e29a7cde3cfeeac6
2017-04-17 15:06:00 -07:00
..
changeListeners actions: Add token to PREVIEW_SHOW 2017-04-11 09:26:22 +01:00
gateway Handle RESTBase 404 2017-04-06 18:03:11 +02:00
preview Test: Migrate preview/model.test.js to node-qunit 2017-02-20 20:01:01 +01:00
reducers reducers: Make LINK_CLICK finalize but not close 2017-04-17 15:06:00 -07:00
actions.test.js actions: Add token to PREVIEW_SHOW 2017-04-11 09:26:22 +01:00
changeListener.test.js Test: Migrate changeListener.test.js to node-qunit 2017-02-20 20:01:01 +01:00
counts.test.js Set up qunit running in node to migrate tests to commonjs 2017-02-20 20:01:01 +01:00
integration.test.js actions: Simplify delaying FETCH_COMPLETE 2017-03-30 17:48:58 -07:00
isEnabled.test.js Disable Previews when Navigation Popups Gadget is enabled 2017-04-06 13:11:17 -04:00
previewBehavior.test.js preview: Add click behavior 2017-03-30 17:08:08 -07:00
schema.test.js Tests: Extract createStubMap 2017-03-01 12:40:42 +01:00
settingsDialog.test.js Tests: Migrate settingsDialog.test.js to node qunit 2017-02-22 12:14:07 +01:00
statsvInstrumentation.test.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
stubs.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
userSettings.test.js Tests: Migrate userSettings.test.js to node-qunit 2017-03-01 12:47:07 +01:00
wait.test.js Test: Migrate wait.test.js to node-qunit 2017-02-22 12:13:37 +01:00