-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Infrastructure UI] Functional tests for basic functionality on Hosts View #147691
Comments
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
Hey @neptunian - still want to do this? Just figuring out priorities of this...(cleaning up the backlog) |
Hey @neptunian - just pinging this one... |
@roshan-elastic Yes. |
Cheers @neptunian - would you be able to quickly recap the benefits of this (just for my understanding)? I'm guessing it's best practice, will help us maintain quality and making testing quicker every time we deploy to it (but will prob some up-front work and some maintenance as we develop it). Would that be about right? |
@roshan-elastic Yes. We do this for all of our views and they are usually added in the same PR as the introduction of the feature without a separate issue necessary. Since this started as a POC and things were changing a lot it seemed more appropriate to wait until things stabilized so we don't have to rewrite these. Typically we have unit tests for pieces of code that can be tested in isolation and then we have functional tests which actually start a browser and mimic a user clicking around. We make sure the basic things work although it can be detailed as well for important features. It helps to catch bugs that might appear once things are actually working together that we may not have thought about or we can't really test for otherwise. It's also like a basic "sanity" test to make sure the app functions at a basic level. For example a bug, perhaps unrelated to our code in one of the components we are using could cause the app not to load or the query bar to be broken for some reason, and this could catch that. CI would not allow the PR to go through. We used to do manual testing before each release for a week or so with the whole team testing each other's work. We're trying to save time by automating this as much as possible with these tests. |
Hey @neptunian, I've been following this issue since I was working on some functional tests for the Hosts View Alerts section. Some basic tests were already implemented and with these changes we refactored and added some more tests for the page, but I believe we are still missing many more (such as testing the filtering options work fine, query bar etc), I'd be happy to help on this if there are more required tests! |
@tonyghiani That would be great! |
Great - thanks @neptunian . Sounds like we should try and do this if we're going to need to do this as part of moving to beta so moving this up the list. |
@neptunian I updated the description with some extra things that would need testing, would you add anything else or can we consider this as ready? |
Thanks @tonyghiani! I think that looks good for now and we can consider this ready |
@tonyghiani if this ticket will include the Functional Tests for the logs I guess we might need to add some extra points like:
wdyt? feel free to add more if you see needed |
Just a thought: In the future, maybe we could try to create the tests in the same PR that implements the feature, so we don't keep adding tech debts to this list. |
@crespocarlos Agree. I was explaining in a comment above that ideally we do it this way, but it was put off until the product stabilized starting from the POC, though we probably could have started a bit earlier. |
## 📓 Summary Closes #147691 - Test hosts table content. - Test to verify the search results hosts to propagate the filter to other sections. - Test Logs tab existence, to add a test for logs content once #154030 is resolved. --------- Co-authored-by: Marco Antonio Ghiani <[email protected]>
…54026) ## 📓 Summary Closes elastic#147691 - Test hosts table content. - Test to verify the search results hosts to propagate the filter to other sections. - Test Logs tab existence, to add a test for logs content once elastic#154030 is resolved. --------- Co-authored-by: Marco Antonio Ghiani <[email protected]>
After all features are in for the MVP, write basic functional tests similar to what we have for existing views, that loads some archived data and tests components are loading and possible user flows.
These tests could include:
The text was updated successfully, but these errors were encountered: