Describe the bug
visualReportsHelper unit test is failing because we are using elastic demo url in unit test for reporting module to access and gernerate report.
Recently they change the html identifier from "#dashboardsViewport" to ".dashboardViewport".
Solution:
We should remove this dependency on elastic. Using a html locally and let pupeeter renders it is a better option
reference: https://stackoverflow.com/questions/65417870/how-to-mock-remote-website-responses-to-unit-test-puppeteer-code-with-jest
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
- OS: [e.g. iOS]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug
visualReportsHelper unit test is failing because we are using elastic demo url in unit test for reporting module to access and gernerate report.
Recently they change the html identifier from "#dashboardsViewport" to ".dashboardViewport".
Solution:
We should remove this dependency on elastic. Using a html locally and let pupeeter renders it is a better option
reference: https://stackoverflow.com/questions/65417870/how-to-mock-remote-website-responses-to-unit-test-puppeteer-code-with-jest
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.