-
Notifications
You must be signed in to change notification settings - Fork 6
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
87: Toggle inspector on global ALT+F12 shortcut. #92
Conversation
…cy assertions in another test.
The issue with your test was that tests in this file use a mock redux data store which has a pass-through reducer so executing All that needs to be asserted is the action dispatched on the store. What happens to the real production store on this particual action is asserted in different tests. The goal of these tests (all tests in the project) is decoupling data (store) and the view (react). In store tests we test the In component tests we test I also noticed that the other test is broken (an aftermath of #94). If fixed it as well. |
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.
Have you checked if Alt+F12 works on all [Chrome, Firefox, Safari]x[Mac, Windows, popular linux WM] combinations?
Nope. Good point. I'll check that and I'll add a better combination check - like we shouldn't act on ctrl+alt+F12. Thanks for the explanation with tests. |
So far I've checked Chrome,Firefox x Linux Mint (Ubuntu) as I don't have access to other browsers I've also searched the help. Browsers: And OS'es: AFAICS most of them doesn't use "higher" F, only F11 for maximize and F12 for developer tools in FF/Chrome - so without actually testing them I'm pretty OK with this shortcut. |
It's safe. |
So I've implemented the toggling as you proposed in the issue - that was easy.
However, I have problem with tests, see f6f1a3a. In here I've added a home made
window.addEventListener()
interceptor, similarly to a one proposed here.However, the test fails on assertion (the code is executed though).
Feature: Toggle inspector on Alt+F12 keyboard shortcut. Closes #87.