integration_tests
integration_tests copied to clipboard
[Bug] Setting Management Engine Relationship for RHV VM fails
Before testing SSA for VM on RHV provider, we must first set Management Engine Relationship for that VM. When we do it here, success flash message saying "Management Engine Relationship saved." is displayed in CFME UI. However, testing framework throws this error.
I tried two things to fix it:
- I added
from time import sleep; sleep(10)
before this line. It helped but tha's probably not an ideal solution. - I tried added these two lines in the same place:
view = view.browser.create_view(InfraVmDetailsView, additional_context={'object': self.vm})
view.wait_displayed()
but this failed somewhere deep within wait_dispayed
with this. I could not really fix it myself, therefore creating this bug.
Edit: I realized that @rhrazdil already created #8024 to describe this issue. I will close #8024 (but please, look at it for reference) and let's track the progress here. Radim's issue was created first, but I already wrapped some of the test cases with this one. That's the reason I am keeping mine alive. Also, Radim moved to another effort, so this will probably be better.
This bug is still present. However, I don't have a better solution than Jan yet. Re-opening the issue.
This seems to be fixed with the change in https://github.com/ManageIQ/integration_tests/commit/3a417ac4a2810149f7a4ddf157bf60489b462243 that waits for flash messages to be present before calling assert_success_message()
.