mediawiki-skins-Vector/tests/phpunit/integration
Nicholas Ray 6e9506dcad Dynamically expand/collapse sub-sections in ToC based on # of headings
Server render the table of contents in a collapsed state when the total
number of headings is equal or greater than the value of
`$wgVectorTableOfContentsCollapseAtCount`. Otherwise, the table of
contents will be server rendered in its "expanded" state.

In addition:

* Revise table of contents tests to call one `assertion` per element so
  that it is easier to see the exact element that may fail an assertion.
* Revise table of contents tests to call a mount function that can merge
  props to allow for a more flexible set of tests.
* Revise table of contents tests by wrapping a `describe` around tests
  that expect the same prop state.
* Adds typedef for table of sections props

Bug: T300973
Depends-On: Ifaee451e1903f2accd0ada2f2ed6dfa3f83037b6
Change-Id: I382200bc603b6abf757a91f14a8a55a6581969bd
2022-02-21 14:58:51 -07:00
..
HTMLForm/Fields HTMLLegacySkinVersionFieldTest: Adjust tests to closer to real situation 2022-02-08 09:34:49 +00:00
SkinVectorTest.php Dynamically expand/collapse sub-sections in ToC based on # of headings 2022-02-21 14:58:51 -07:00
SkinVersionLookupTest.php Fix bug in SkinVersionLookup 2022-01-24 13:34:06 -08:00
VectorHooksTest.php Migration mode is now the default 2022-02-07 22:20:16 +00:00