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 3c5c51d commit 44378f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/pages/select_grant_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


class SelectGrantPage(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.select_grant: Locator = self.page.get_by_role("combobox", name="Select or add a grant")
self.continue_btn: Locator = self.page.get_by_role("button", name="Continue")
Expand Down Expand Up @@ -36,7 +36,7 @@ def when_select_a_grant(self, grant_name: str = None):

def when_click_continue(self):
self.continue_btn.click()
return CreateApplicationPage(self.page)
return CreateApplicationPage(self.page, self.metadata)

def then_verify_on_select_grant(self):
expect(self.select_grant).to_be_visible()
Expand Down

0 comments on commit 44378f6

Please sign in to comment.