Skip to content

Commit

Permalink
virtwho config edit name message check update (#1096) (#1109)
Browse files Browse the repository at this point in the history
(cherry picked from commit ca08a3e)

Co-authored-by: yanpliu <yanpliu@redhat.com>
  • Loading branch information
Satellite-QE and yanpliu authored Jan 4, 2024
1 parent af7204f commit 5ad483b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion airgun/entities/virtwho_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def edit(self, name, values):
values = self._reset_values(values)
view.fill(values)
view.submit.click()
view.flash.assert_message(f"Success alert: Successfully updated {name}.")
if 'name' in values:
view.flash.assert_message(f"Success alert: Successfully updated {values['name']}.")
else:
view.flash.assert_message(f"Success alert: Successfully updated {name}.")
view.flash.assert_no_error()
view.flash.dismiss()

Expand Down

0 comments on commit 5ad483b

Please sign in to comment.