mediawiki-skins-Vector/tests/jest
Nicholas Ray d01dead5a7 Revise AB.js to handle other features + server sampling/bucketing
* Eliminates AB.js dependency on sticky header
* Code coverage has been raised to 100%
* Instead of importing ABTestConfig, these props are now passed into the
  function along with a token.
* WikimediaEvents hook is now fired when experiment is initialized. The
  experiment should not be initialized if it is not enabled.
* Removes several methods (e.g. initAB, getEnabledExperiment) due to the
  preceeding changes.
* Adds `isInSample` and `isInTreatmentBucket` methods so that the client
  has less work.

Treatment buckets now follow a naming convention so that the client can
do less work querying if the subject is part of the treatment:

* Treatment buckets should have the case-insensitive `treatment`
  substring somewhere in their name (e.g. 'treatment',
  'stickyHeaderTreatment', 'sticky-header-treatment' )

Bug: T302046
Change-Id: I4febec42b4c471b2f2ef02be2e334bd6d2c31eec
2022-03-22 11:58:48 -06:00
..
__mocks__ Revise AB.js to handle other features + server sampling/bucketing 2022-03-22 11:58:48 -06:00
__snapshots__ Revert "build: Update eslint-config-wikimedia to 0.22.1" 2022-03-16 23:40:42 +00:00
AB.test.js Revise AB.js to handle other features + server sampling/bucketing 2022-03-22 11:58:48 -06:00
App.test.js Setup jest unit tests and add basic test cases for AB.js and App.vue 2022-01-31 20:50:33 +00:00
deferUntilFrame.test.js Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
fetch.test.js Add fetch tests from WVUI 2022-02-15 14:00:40 -06:00
restSearchClient.test.js Move REST search client out of WVUI into Vector 2022-02-10 10:17:10 -06:00
stickyHeader.test.js Remove custom handling of aria-expanded in Vector checkbox hack buttons 2022-03-21 23:14:51 +05:30
tableOfContents.test.js [i18n] Table of contents heading 2022-03-16 17:18:51 +00:00