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 #8155 from ganeshhubale/fix-5.10-attr-orch-temp
Browse files Browse the repository at this point in the history
[1LP][RFR] Fixed AttributeError in OrchestrationTemplate for 5.10z
  • Loading branch information
izapolsk committed Nov 20, 2018
2 parents 101f6d6 + 7a142b0 commit 266c40f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cfme/services/catalogs/orchestration_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class EditTemplateView(TemplateForm):
@property
def is_displayed(self):
return (
self.title.text == "Editing {}".format(self.context['object'].name) and
self.title.text == "Editing {}".format(self.context['object'].template_name) and
self.orchestration_templates.is_opened
)

Expand All @@ -79,7 +79,7 @@ class CopyTemplateView(CopyTemplateForm):
def is_displayed(self):
return (
self.is_displayed and
self.title.text == "Copying {}".format(self.context['object'].name) and
self.title.text == "Copying {}".format(self.context['object'].template_name) and
self.orchestration_templates.is_opened
)

Expand Down Expand Up @@ -152,6 +152,7 @@ def update(self, updates):
'draft': updates.get('draft'),
'content': updates.get('content')})
view.save_button.click()
view.flash.wait_displayed("10s")
view.flash.assert_success_message('Orchestration Template "{}" was saved'.format(
self.template_name))

Expand All @@ -178,7 +179,7 @@ def copy_template(self, template_name, content, draft=None, description=None):
})
view.add_button.click()
view.flash.assert_no_error()
#TODO - Move assertions to tests
# TODO - Move assertions to tests
return self.parent.instantiate(template_group=self.template_group,
description=description,
template_name=template_name,
Expand Down

0 comments on commit 266c40f

Please sign in to comment.