Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.
Merged
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
11 changes: 10 additions & 1 deletion cfme/common/provider_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,21 @@ class ProviderDetailsSummaryView(View):
summary = ParametrizedSummaryTable()
sidebar = View.nested(SummaryAccordionView)

@property
def is_displayed(self):
return self.summary("Properties").is_displayed

@entities.register('Dashboard View')
class ProviderDetailsDashboardView(View):
"""
represents Details page when it is switched to Dashboard aka Widgets view
"""
cards = ParametrizedStatusBox()

@property
def is_displayed(self):
return self.cards("Instances").is_displayed

@property
def is_displayed(self):
subtitle = 'Summary'
Expand All @@ -107,7 +115,8 @@ def is_displayed(self):
name=self.context['object'].name,
subtitle=subtitle
)
return (self.logged_in_as_current_user and
return (self.entities.is_displayed and
self.logged_in_as_current_user and
self.breadcrumb.is_displayed and
self.breadcrumb.active_location == title) # BZ 1703744

Expand Down