-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Restored search hotkey for desktop. #2355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
549b303 to
9d9dbf6
Compare
adamzap
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still catching up on recent PRs...it looks like we have two elements with the same ID on the page now. I wonder if there's a way to achieve the same behavior with a single element and responsive styling. Do you or others think this is worth pursuing?
I originally tried doing this but found it challenging. The search bar duplication aligns with the light/dark mode toggle duplication and show/hide behavior, aligning to that was easier to acheive given the existing html structure |
7e511ca to
b458667
Compare
| self.assertTrue(is_focused) | ||
| page.close() | ||
|
|
||
| def test_search_ctrl_k_hotkey_mobile(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to set an explicit user agent on the two hotkey tests. I'm getting failures because I'm running them locally on a Mac.
| STATIC = djangoproject/static | ||
|
|
||
| ci: compilemessages test | ||
| ci: compilemessages collectstatics test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed because of the new JavaScript tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes 👍
(I think this also mostly fixes #1831 but still need the tests to use the production STORAGES setting, can have someone check if that can be pulled into the common settings file 🤔)
9293dd0 to
c59d0cd
Compare
Fixes #2349
I also added playwright to have a way to test JavaScript (might be controversial and can remove if wanted)