aboutsummaryrefslogtreecommitdiff
path: root/js/tests
AgeCommit message (Collapse)AuthorFilesLines
2024-07-19Fix `this` reference for JavaScript functions (#38725)Nathan Sarang-Walters4-7/+96
2024-06-12Floating labels: Fix `max-width` and `background-color` (#39720)Louis-Maxime Piton1-0/+337
* Fix `max-width` * Fix label background color * Add new visual test: floating label * Fix `npm run docs` --------- Co-authored-by: Julien Déramond <[email protected]>
2024-02-18Selector Engine: fix multiple IDs (#39201)GeoSot2-0/+41
* fix: regression of #38989 * Add unit test in selector-engine.spec.js --------- Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2024-02-06Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 (#39651)dependabot[bot]8-8/+24
* Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 Bumps [eslint-config-xo](https://github.com/xojs/eslint-config-xo) from 0.43.1 to 0.44.0. - [Release notes](https://github.com/xojs/eslint-config-xo/releases) - [Commits](https://github.com/xojs/eslint-config-xo/compare/v0.43.1...v0.44.0) --- updated-dependencies: - dependency-name: eslint-config-xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update .eslintrc.json * Update .eslintrc.json * autofix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2023-10-13Tests: update navbar in visual modal test (#39294)Julien Déramond1-15/+19
2023-09-13Fix collapse multiple ids target (#38989)Louis-Maxime Piton1-0/+12
2023-07-23Support `Home` and `End` keys in tabs (#38498)Kyle Tsang1-0/+112
* Support `Home` and `End` keys in tabs * Update tab.js * simplify tests * Update navs-tabs.md * Update .bundlewatch.config.json --------- Co-authored-by: Patrick H. Lauke <[email protected]> Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2023-07-05Docs: add missing `aria-disabled='true'` to disabled anchorsJulien Déramond1-2/+2
2023-05-01Update URL sanitizer to allow more protocols (#38531)Kyle Tsang1-10/+68
Co-authored-by: XhmikosR <[email protected]>
2023-05-01Fix scrollspy and accented anchor links (#38502)Alejandro Mendoza2-0/+43
2023-04-11dropdown.spec.js: expect nothing in constructor (#38442)XhmikosR1-0/+1
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR34-136/+99
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-03-14Remove empty script tag (#38233)Neeraj Kumar Das1-1/+0
2023-03-14Fix wrong generation of `aria-labelledby` in tab navigation (#38223)Jan Bensch1-1/+1
* fix wrong generation of aria-labelledby in tab navigation * fix wrong test --------- Co-authored-by: Jan Bensch <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2023-02-21Tests: remove unnecessary `id`/`aria-labelledby` from collapse unit tests ↵Julien Déramond1-15/+15
(#38089)
2023-02-11Minor fix to avoid creating void elements in tooltip test file (#38034)Julien Déramond1-51/+51
2023-01-17Fix Android Chrome input date dimensions (#36143)Tanguy Krotoff1-0/+79
* Bind Hugo to 0.0.0.0, helps debug on mobile when on the same network * Use http-server for visual tests * Add input visual tests * Fix input date dimensions on Android Chrome * Increase bootstrap.css max size * Revert "Bind Hugo to 0.0.0.0" & "Use http-server for visual tests" * Switch to pixels: this is an empirical minimum safe value * Update .bundlewatch.config.json Co-authored-by: Mark Otto <[email protected]>
2023-01-16Deprecate the Sass var and remove any occurence of the `.text-muted` (#37890)Louis-Maxime Piton2-2/+2
2022-11-12Docs: use `<button>` for dropdown/popover examples, explain preference over ↵Patrick H. Lauke1-3/+3
`<a>` for dropdowns, tweak collapse prose (#37432) * Expand dropdown explanation for use of `<a>`, use `<button>`s for modal examples * Remove redundant `role="button"` from collapse test `<button>` elements * Tweak language * Tweak collapse prose
2022-11-12ESLint: enable prefer-template rule (#37484)XhmikosR6-6/+6
2022-11-07Properly escape IDs in getSelector() to handle weird IDs (#35565) (#35566)Pierre Souchay2-3/+40
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot2-115/+156
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-10-12Docs: standardize usage of `<kbd>`Julien Déramond1-2/+2
2022-10-07Boost `execute` function, being able to handle arguments (#36652)GeoSot1-0/+19
2022-10-03Rename some vars in tab unit tests for consistency (#37248)Julien Déramond1-9/+9
2022-10-02Ensure Tab keyboard functionality after #37146 (#37200)GeoSot1-4/+30
* fix: keyboard functionality * test: add tests * Add some focus spies in 2 other unit tests Co-authored-by: Julien Déramond <[email protected]>
2022-10-02Use `<h1>` for all `modal-title` examples/uses (#37210)Patrick H. Lauke1-4/+4
* Use `fs-` font sizing classes where needed * Also add info callout about heading hierarchy in modals
2022-09-27Add eslint-plugin-html to lint JS in HTML files (#37186)Julien Déramond5-13/+40
2022-09-27Dropdown: fix case with invalid markup (#37190)GeoSot1-0/+22
This fixes a backward incompatible change in v5.2.1 where `.drodown-toggle` isn't present in the markup.
2022-09-23Tests: add testcase to Tabs, keyboard handler (#37189)GeoSot1-6/+13
2022-09-22Fix active class toggling of tabs within dropdown (#37151)Carson Sievert1-3/+4
* Close #36947: fix active class toggling tabs within dropdown
2022-09-22Use es6 on visual tests (#36915)GeoSot4-51/+30
2022-09-20Drop tabs auto-focus (#37146)GeoSot1-2/+29
* fix: drop tabs auto-focus
2022-09-20Update devDependencies (#37177)XhmikosR1-1/+1
2022-09-15Fix modal event listeners (#37128)Jérémie Broutier1-0/+30
* Fix modal event listeners (#37126) Co-authored-by: GeoSot <[email protected]>
2022-09-14fix: add trick to support tooltip selector usage on dynamic created tooltips ↵GeoSot1-14/+40
that utilize `title` attribute (#36914)
2022-09-07Fix modal event-listeners during dismiss click (#36863)GeoSot1-0/+4
ref: #36855
2022-09-02fix(dropdowns): Fix multiple dropdowns when they are inside the same tag ↵Louis-Maxime Piton1-0/+61
(#37011)
2022-07-28ScrollSpy: make the threshold option configurable (#36750)GeoSot1-0/+44
* feat(ScrollSpy): make the threshold option configurable
2022-07-27Re-set tooltip title, on disposal (#36751)GeoSot1-0/+19
fix(reg): Re-set tooltip title, on disposal
2022-07-19Fix failing test on EventHandler (#36772)GeoSot1-4/+3
2022-07-18Fix typos in code (#36763)Marc Wrobel1-1/+1
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-07-15Standardization of `spyOn` usage (#36742)Julien Déramond1-3/+3
2022-07-14Offcanvas: activate focustrap when backdrop is enabled (#36717)GeoSot1-1/+23
* fix(offcanvas): activate focustrap when backdrop is enabled * Adding tabindex='-1' for both offcanvases in the docs * Remove useless aria-expanded='false' in togglers * Update js/tests/unit/offcanvas.spec.js Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Patrick H. Lauke <[email protected]>
2022-07-06Handle non-empty whitespace `textContent` in Tooltip trigger (#36588)Nathan Walters1-0/+19
2022-07-04ref(tests): Minor fix to use self-closing input HTML tag (#36667)Julien Déramond3-5/+5
2022-06-30Fix interoperability issue regarding Event properties (#36386)Aleksander Machniak1-0/+37
* Fix interoperability issue regarding Event properties - make possible to re-set read-only event properties - use hydrateObj() to set delegateTarget property Fixes #36207 Co-authored-by: GeoSot <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-06-27Force tooltip and popover to recreate content every time it opens (#35679)GeoSot1-2/+4
2022-06-27ref(tab): remove show from panels dependent-less they have `.fade` class or ↵GeoSot1-2/+2
not (simplify checks) (#36622)
2022-06-21fix: change dismiss handler, listening to key down, instead of click (#36401)GeoSot1-6/+13