-
Notifications
You must be signed in to change notification settings - Fork 91
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
Improve testability + small code changes of AppSideBarTabs #1515
Improve testability + small code changes of AppSideBarTabs #1515
Conversation
e6b539d
to
f8976f7
Compare
This comment has been minimized.
This comment has been minimized.
May I ask for some feedback ? |
Hey!! |
Could you rebase to master? |
Sure I will do it tomorrow :) |
Changed way to stub console in test Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Remove the duplicate stub make the test more resilient Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
Signed-off-by: Simon Belbeoch <sbelbeoch@octo.com> Signed-off-by: Simon Belbeoch <simon.belbeoch@octo.com>
f8976f7
to
d816967
Compare
@skjnldsv done :) |
Very nice!! |
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.
🚀
🎉 🎉 🎉 🎉 |
Thank you so much @LiquidITGuy |
Hi,
I added unit tests on already tested component to familiarize myself with the code.
I also fix some warning on the passing tests of the current code (stub of console does not work as expected)
During this phase I found a bug with the key listener.
According to the documentation, we can use the kebab-case standard even if it’s not a defined shortcut.
https://vuejs.org/v2/guide/events.html#Key-Modifiers
But it doesn’t seem to work on every system.
Other events seems to trigger the listeners ‘keydown.page-up’ and ‘page down’.
You can try it with the written tests.
According to Vue-test-utils the key to trigger it in tests are ‘pageup’ and ‘pagedown’.
https://vue-test-utils.vuejs.org/guides/dom-events.html
May it be an issue in Vuejs listener process on some engines?
For now I fixed it with the keyboard code.
After writing those tests, I make some minor change into the code to make it easier to reuse.
I would be happy to have feedback to know if pull requests like this one can be helpful or not or to view it merged :).