aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/util/focustrap.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-4/+4
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2022-05-31JS: tests fixes & standardization of spies usage (#36398)Louis-Maxime Piton1-16/+16
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot1-116/+124
Reference: https://jasmine.github.io/tutorials/async 'DEPRECATION: An asynchronous function called its 'done' callback more than once. This is a bug in the spec, beforeAll, beforeEach, afterAll, or afterEach function in question. This will be treated as an error in a future version. See<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> for more information.
2021-12-01tests: remove extra spaces, unneeded arrays and add missing newlinesXhmikosR1-7/+7
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR1-2/+2
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-09-07Typo fixes (#34914)XhmikosR1-1/+1
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner1-0/+210
(#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <[email protected]> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>