Skip to content

Commit db0ea25

Browse files
authored
Manifest expiration date appearance of header and message (#1443)
* verify manifest expiration message display on page or not * addressed review comments
1 parent 9fef01a commit db0ea25

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

airgun/entities/subscription.py

+11
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@ def read_subscription_manifest_expiration_date_only(self):
139139
manage_view.close_button.click()
140140
return manifest_expiration_date
141141

142+
def is_subscription_manifest_header_message_display(self):
143+
"""Checks header and massage present in the manage manifest modal"""
144+
view = self.navigate_to(self, 'Manage Manifest')
145+
view.wait_animation_end()
146+
result = view.manifest.alert_message.is_displayed
147+
# close opened modal dialogs views
148+
manage_view = ManageManifestView(self.browser)
149+
if manage_view.is_displayed:
150+
manage_view.close_button.click()
151+
return result
152+
142153
def add(self, entity_name, quantity=1):
143154
"""Attach new subscriptions
144155
:param entity_name: Name of subscription to attach

0 commit comments

Comments
 (0)