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
Allow hidden=true for categorized object, #999
base: master
Are you sure you want to change the base?
Conversation
Do you also have a codeceptjs test, since there's a test page? |
hi @schmunk42, |
Do you have Docker on your machine? Starting point for testing: https://github.com/json-editor/json-editor/tree/master/tests#testing |
hi @schmunk42, thanks for bearing with me on this. no docker here; I try to keep things as simple as possible, and I'm windows 10 based :(. I ran 'npm run test' and it seems to do something, but not sure what I am looking at... I guess I need to spend some time looking at the current tests and see which is closest. But 'run tests' is not the codeceptjs stuff, is it? but... having looked a little deeper, I found that the main reason stuff was not working well for me was port 9001 was occupied... the results are NOT clean, I see a lot of these in the test output:
and it finishes with (master branch from yesterday):
is this normal? p.s. I'm guessing that the 'test' I should try to create would load different schemas with different arrangements of categories and hidden, and check for text on screen? - this would be the first time I'd created a test involving this sort of thing.... |
I can't really help you with the setup. |
It would be nice if the same behaviour applies when the category is a dependant editor. {
"options": {
"dependencies": {
"age": 26
}
}
} |
hiding the tab and the config pane.
Hi, my first PR for this branch.
The small mods allow 'Category' tabs to hide when the related object is hidden.
I have added my HTML I was using to test the feature, not sure if I was correct to do so...
(will shortly push this updated with a valid jsoneditor js location!)
pls. review carefully....
br, Simon