Skip to content

Commit

Permalink
verify manifest expiration message display on page or not
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Jun 24, 2024
1 parent 36cbedb commit 1297d68
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions airgun/entities/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@ 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):
"""Is header & message present in manage manifest modal box or not"""
result = False
view = self.navigate_to(self, 'Manage Manifest')
view.wait_animation_end()
if view.manifest.alert_message.is_displayed:
result = True
# 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
Expand Down

0 comments on commit 1297d68

Please sign in to comment.