Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[RFR] Fixed failure for flash #9650

Merged
merged 3 commits into from
Nov 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cfme/tests/v2v/test_v2v_ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def test_migration_playbooks(request, appliance, source_provider, provider,
view = navigate_to(migration_plan, "CompletedPlanDetails")
view.download_logs.item_select("Premigration log")
view.flash.assert_no_error()
# It takes few secs to download the log hence we need to wait
wait_for(lambda: view.download_logs.item_enabled("Postmigration log"), timeout=5)
view.download_logs.item_select("Postmigration log")
view.flash.assert_no_error()

Expand Down
2 changes: 2 additions & 0 deletions cfme/v2v/migration_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from widgetastic_manageiq import RadioGroup
from widgetastic_manageiq import SearchBox
from widgetastic_manageiq import Table
from widgetastic_manageiq import V2VFlashMessages
from widgetastic_manageiq import V2VPaginatorPane


Expand Down Expand Up @@ -317,6 +318,7 @@ class MigrationPlanRequestDetailsView(View):
migration_request_details_list = MigrationPlanRequestDetailsList("plan-request-details-list")
paginator_view = View.include(V2VPaginatorPane, use_parent=True)
download_logs = Dropdown("Download Log")
flash = V2VFlashMessages('.//div[@class="modal-wizard-alert"]')

@property
def is_displayed(self):
Expand Down