Skip to content

Commit

Permalink
virtwho config edit name message check update (SatelliteQE#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanpliu authored Jan 3, 2024
1 parent 6950cc5 commit ca08a3e
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 ca08a3e

Please sign in to comment.