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

Commit

Permalink
Create TemplatesCompareView and remove 1 template param
Browse files Browse the repository at this point in the history
  • Loading branch information
prichard77 committed Jan 23, 2020
1 parent 35c2cf7 commit 488f3ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions cfme/common/provider_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,10 @@ def before_fill(self, values):

class TemplatesCompareView(InfraProvidersView):
"""Compare Templates page."""
title = Text('.//div[@id="center_div" or @id="main-content"]//h1')

@property
def is_displayed(self):
title = "Compare Templates"
return (self.logged_in_as_current_user and
# self.navigation.currently_selected == ['Compute', 'Infrastructure',
# 'Hosts', 'Compare Host / Node'] and
self.title.text == title)
title = "Compare VM Template and Image"
return (self.logged_in_as_current_user and self.navigation.currently_selected == [
'Compute', 'Infrastructure', 'Providers'] and self.title.text == title)
3 changes: 1 addition & 2 deletions cfme/tests/infrastructure/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,7 @@ def setup_provider_min_templates(request, appliance, provider, min_templates):
setup_or_skip(request, provider)


@pytest.mark.parametrize("min_templates", [1, 2, 4])
@pytest.mark.meta(blockers=[BZ(1746449, forced_streams=["5.10"])], automates=[1746449])
@pytest.mark.parametrize("min_templates", [2, 4])
def test_compare_provider_templates(appliance, setup_provider_min_templates, provider,
min_templates):
"""
Expand Down

0 comments on commit 488f3ad

Please sign in to comment.