Skip to content

Commit

Permalink
Adding metadata share functionality using base page
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwan-samarasinghe committed Mar 7, 2025
1 parent 44378f6 commit c10cadc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/pages/applications_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


class ApplicationsPage(PageBase):
def __init__(self, page: Page, base_url: str = None):
super().__init__(page, base_url)
def __init__(self, page: Page, base_url: str = None, metadata=None):
super().__init__(page, base_url, metadata)
# Initialize locators
self.title = self.page.get_by_role("heading", name="Applications")
self.create_new_application = self.page.get_by_role("button", name="Create new application")
Expand All @@ -19,7 +19,7 @@ def when_click_create_new_application(self):
self.create_new_application.click()
from tests.e2e.pages.select_grant_page import SelectGrantPage

return SelectGrantPage(self.page)
return SelectGrantPage(self.page, self.metadata)

def then_verify_on_applications(self):
expect(self.title).to_be_visible()
Expand Down

0 comments on commit c10cadc

Please sign in to comment.