-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Adds support for query parameter "hideMenu" (attempt #2) #171
Conversation
Could you add tests for that code? |
48e6108
to
aec9607
Compare
Adding coverage to your existing test that confirms it doesn't break was straightforward. I tried adding additional tests to send the browser to variants of the url. But I wasn't successful. You only have the one test right now, and something about the browser setup/teardown was, I think, limiting me. (But I haven't used nightwatch before, so it could be my error). Even copying the contents of testBoard again
fails with
I really wanted to do something like this:
Those tests pass if I replace your current test, but not in addition to the current test. |
aec9607
to
f66a81d
Compare
Ah. it was the |
This adds the ability to load a board with the menu hidden; it provides a form of "read-only" mode, but the key bindings are still active. Use with, e.g.: http://localhost:5001/boards/qYAZyGdym6HqjnfaGI4yNtpdx0IMHd9qp6kaJPwbJqE-?hideMenu=true The alternative, proposed in lovasoa#116, was to remove the menu completely, but this would require more substantial changes to board.js (which hangs on "Loading..." if the menu is removed). Related to lovasoa#150 Related to lovasoa#116 Adds support for query parameter "hideMenu" This adds the ability to load a board with the menu hidden; it provides a form of "read-only" mode, but the key bindings are still active. Use with, e.g.: http://localhost:5001/boards/qYAZyGdym6HqjnfaGI4yNtpdx0IMHd9qp6kaJPwbJqE-?hideMenu=true The alternative, proposed in lovasoa#116, was to remove the menu completely, but this would require more substantial changes to board.js (which hangs on "Loading..." if the menu is removed). Related to lovasoa#150 Related to lovasoa#116
f66a81d
to
d5111af
Compare
Ok, I'll try to test that more carefully than last time, and I'll merge if everything is ok. |
Thanks. |
Thanks to you for contributing :) |
This adds the ability to load a board with the menu hidden; it provides a form of "read-only" mode, but the key bindings are still active.
Use with, e.g.:
http://localhost:5001/boards/qYAZyGdym6HqjnfaGI4yNtpdx0IMHd9qp6kaJPwbJqE-?hideMenu=true
The alternative, proposed in #116, was to remove the menu completely, but this would require more substantial changes to board.js (which hangs on "Loading..." if the menu is removed).
By opening a pull request, I certify that I hold the intellectual property of the code I am submitting, and I am granting the initial authors of WBO a perpetual, worldwide, non-exclusive, royalty-free, and irrevocable license to this code.Related to #150
Related to #116