Skip to content
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

Fix multiple bodies in JsTree output #186

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Tobianas
Copy link
Contributor

Ensure JsTree output contains a single body element, resolving the
issue of multiple bodies in the generated HTML file.

JIRA: LIGHTY-128

Previously, there was no test coverage for the output of multiple json-tree modules.
To address this, this commit adds a new test that parses two modules and compares their
combined output against the old expected output. This provides more comprehensive
testing and ensures that the json-tree modules are correctly processing multiple inputs.

JIRA:LIGHTY-221
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Added test case for generating HTML file from multiple modules to
identify the issue with multiple <body> tags. The test asserts that
the file contains the expected modules, verifies that there is only
one <body> tag, and checks if the output matches the expected HTML file.

JIRA: LIGHTY-182
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Ensure JsTree output contains a single body element, resolving the
issue of multiple bodies in the generated HTML file.

JIRA: LIGHTY-128
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Since we have changed the logic of JsTree, the expected
output for deviations needs to be changed.

JIRA: LIGHTY-128
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant