Skip to content

Commit

Permalink
add check virtwho config create&edit&delete flash message (#851)
Browse files Browse the repository at this point in the history
* add check virtwho config create flash message

* add check virtwho config edit&delete flash message
  • Loading branch information
yanpliu authored Jun 20, 2023
1 parent 03efaf1 commit b6cc4ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airgun/entities/virtwho_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def create(self, values):
values = self._reset_values(values)
view.fill(values)
view.submit.click()
view.flash.assert_message(f"Success alert: Successfully created {values['name']}.")
view.flash.assert_no_error()
view.flash.dismiss()

Expand All @@ -62,6 +63,7 @@ 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}.")
view.flash.assert_no_error()
view.flash.dismiss()

Expand All @@ -76,6 +78,7 @@ def delete(self, value):
view.search(value)
view.table.row(name=value)['Actions'].widget.fill('Delete')
self.browser.handle_alert()
view.flash.assert_message(f"Success alert: Successfully deleted {value}.")
view.flash.assert_no_error()
view.flash.dismiss()

Expand Down

0 comments on commit b6cc4ff

Please sign in to comment.