From db0ea25f8ed6723f2dae66f241d3086290c16e4f Mon Sep 17 00:00:00 2001 From: vijay sawant Date: Wed, 26 Jun 2024 18:26:16 +0530 Subject: [PATCH] Manifest expiration date appearance of header and message (#1443) * verify manifest expiration message display on page or not * addressed review comments --- airgun/entities/subscription.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/airgun/entities/subscription.py b/airgun/entities/subscription.py index 78f607f7d..41f9df0d1 100644 --- a/airgun/entities/subscription.py +++ b/airgun/entities/subscription.py @@ -139,6 +139,17 @@ def read_subscription_manifest_expiration_date_only(self): manage_view.close_button.click() return manifest_expiration_date + def is_subscription_manifest_header_message_display(self): + """Checks header and massage present in the manage manifest modal""" + view = self.navigate_to(self, 'Manage Manifest') + view.wait_animation_end() + result = view.manifest.alert_message.is_displayed + # close opened modal dialogs views + manage_view = ManageManifestView(self.browser) + if manage_view.is_displayed: + manage_view.close_button.click() + return result + def add(self, entity_name, quantity=1): """Attach new subscriptions :param entity_name: Name of subscription to attach