Skip to content

Commit

Permalink
add support for versions dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Jun 3, 2024
1 parent b649a9d commit 89f35ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions airgun/entities/contentview_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ def read_french_lang_cv(self):
view.wait_displayed()
return view.table.read()

def click_version_dropdown(self, entity_name, version, dropdown_option):
"""Clicks a specific dropdown option for a CV Version"""
view = self.navigate_to(self, 'Version', entity_name=entity_name, version=version)
self.browser.plugin.ensure_page_safe(timeout='5s')
return view.version_dropdown.item_select(dropdown_option)


@navigator.register(NewContentViewEntity, 'All')
class ShowAllContentViewsScreen(NavigateStep):
Expand Down
3 changes: 3 additions & 0 deletions airgun/views/contentview_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ class ContentViewVersionDetailsView(BaseLoggedInView):
promoteButton = PF4Button(
locator='.//button[@data-ouia-component-id="cv-details-publish-button"]'
)
version_dropdown = Dropdown(
locator='.//div[@data-ouia-component-id="cv-version-header-actions-dropdown"]'
)
editDescription = PF4Button(
locator='.//button[@data-ouia-component-id="edit-button-description"]'
)
Expand Down

0 comments on commit 89f35ae

Please sign in to comment.