This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit/models
Keegan George eb987460f2
FEATURE: Select emojis in picker via keyboard (#18163)
* DEV: Make emoji elements focusable

Since emoji elements are of type `<img>` it requires a `tablindex="0"` in order to be focusable.

* WIP: Handle emoji focus/selection via arrow keys

Near completion, however, need a few fixes/improvements and overall code cleanup

* WIP: Testing

* DEV: Fixes and cleanup

* DEV: Follow conventions

* DEV: Improve up/down traversal when recents present

* DEV: Emoji markup in tests should include `tabindex`

* DEV: Add `tabindex` to topic tests

* DEV: Variable name as `searchInput` instead of `searchBar`

* DEV: Use appropriate method name (`_setNumEmojiPerRow`)

* DEV: Add comments and avoid nested if

* WIP: Adding test

* Fix first test

* DEV: Add assertions for arrow keys and escape key

* Some fixes for up/down navigation

This does not fix everything, when going from one section to another,
there are issues

* Fix a small regression

* FIX: Ability to focus on search results

Fixes regression

* Refactor calculating next up/down emoji

* Debugging test failure

* Skip stubborn CI test, add others

Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2022-09-21 13:21:36 -07:00
..
badge-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
bookmark-test.js FIX: Remove last_unread_post excerpt logic for bookmarks (#17979) 2022-08-19 09:35:25 +10:00
category-test.js DEV: We already restore sinon after each test (#17529) 2022-07-16 22:57:33 +02:00
composer-test.js DEV: Bump eslint-config-discourse (#14868) 2021-11-10 09:31:41 +10:00
email-log-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
invite-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
nav-item-test.js FIX: NavItem and Composer prop overriding was broken (#17092) 2022-06-14 21:16:33 +02:00
pending-post-test.js DEV: Make settled() work in the legacy env (#16122) 2022-03-07 20:00:09 +01:00
post-stream-test.js DEV: Use async and sinon.resolves instead of rsvp (#18001) 2022-08-20 11:20:55 +02:00
post-test.js DEV: Bump eslint-config-discourse (#14868) 2021-11-10 09:31:41 +10:00
private-message-topic-tracking-state-test.js DEV: Convert pm-topic-tracking-state to Ember Service (#17688) 2022-07-27 13:00:43 +01:00
report-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
rest-model-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
result-set-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
session-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
site-test.js FIX: Include all categories in sortedCategories (#14979) 2021-11-17 00:12:04 +01:00
staff-action-log-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
theme-test.js DEV: Use the block form of module() (#17151) 2022-06-20 15:42:10 +02:00
topic-details-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-test.js FEATURE: Select emojis in picker via keyboard (#18163) 2022-09-21 13:21:36 -07:00
topic-tracking-state-test.js Revert "DEV: Minor topic-tracking-state refactor (#17707)" (#17724) 2022-07-29 09:36:14 +10:00
user-action-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-badge-test.js DEV: Fix a test leak (#15135) 2021-11-30 13:45:26 +11:00
user-drafts-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-stream-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-test.js FIX: make sure every user instance has correct status tracking counter 2022-07-26 18:42:55 +04:00
wizard-field-test.js DEV: Make wizard an ember addon (#17027) 2022-06-17 14:50:21 +02:00