From 6f9e2292c1d4ffd56a612f61d198408926d6c3e2 Mon Sep 17 00:00:00 2001 From: yanpliu Date: Tue, 20 Jun 2023 03:01:34 -0400 Subject: [PATCH] add check virtwho config create&edit&delete flash message (#851) * add check virtwho config create flash message * add check virtwho config edit&delete flash message (cherry picked from commit b6cc4ff302b1f05550d672c942723f18325c9d04) --- airgun/entities/virtwho_configure.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airgun/entities/virtwho_configure.py b/airgun/entities/virtwho_configure.py index 82f483d70..384f3bf4f 100644 --- a/airgun/entities/virtwho_configure.py +++ b/airgun/entities/virtwho_configure.py @@ -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() @@ -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() @@ -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()