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

Commit

Permalink
Merge pull request #8240 from lina-nikiforova/fix_BaseEditDashboardWi…
Browse files Browse the repository at this point in the history
…dgetView

[1LP][RFR] fixed is_displayed for BaseEditDashboardWidgetView and added BZ
  • Loading branch information
mshriver committed Dec 6, 2018
2 parents 2a2a490 + f70c92b commit b3753dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cfme/intelligence/reports/widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class BaseEditDashboardWidgetView(DashboardWidgetsView):
def is_displayed(self):
return (
self.in_dashboard_widgets and
self.title_text == 'Editing Widget "{}"'.format(self.context["object"]) and
self.title.text == 'Editing Widget "{}"'.format(self.context["object"].title) and
self.dashboard_widgets.tree.currently_selected == [
"All Widgets",
self.context["object"].TYPE,
Expand Down
6 changes: 4 additions & 2 deletions cfme/tests/intelligence/reports/test_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def test_menuwidget_crud(appliance):

@pytest.mark.sauce
@pytest.mark.tier(3)
@pytest.mark.meta(blockers=[BZ(1656413, forced_streams=['5.10'])])
def test_reportwidget_crud(appliance):
"""
Polarion:
Expand All @@ -165,8 +166,9 @@ def test_reportwidget_crud(appliance):
)
view = w.create_view(AllDashboardWidgetsView)
view.flash.assert_message('Widget "{}" was saved'.format(w.title))
with update(w):
w.active = False
if not BZ(1653796, forced_streams=['5.9']).blocks:
with update(w):
w.active = False
w.delete()


Expand Down

0 comments on commit b3753dc

Please sign in to comment.