ManageIQ / integration_tests

ManageIQ integration tests
GNU General Public License v2.0
69 stars 164 forks source link

[Bug] Setting Management Engine Relationship for RHV VM fails #8157

Open jan-zmeskal opened 5 years ago

jan-zmeskal commented 5 years ago

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:

  1. I added from time import sleep; sleep(10) before this line. It helped but tha's probably not an ideal solution.
  2. 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.

lina-is-here commented 5 years ago

This bug is still present. However, I don't have a better solution than Jan yet. Re-opening the issue.

tpapaioa commented 4 years ago

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().