Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for viewing the needs_publish banner in the cv index page… #1653

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sambible
Copy link
Contributor

Simple change adding an entity to check the banner on cv publish through cv index page, and support for the needs publish banner on cv publish popup

@LadislavVasina1
Copy link
Contributor

@sambible To which branches do you want this PR to be merged?

Comment on lines +68 to +80
view = self.navigate_to(self, 'All')
self.browser.plugin.ensure_page_safe(timeout='5s')
view.wait_displayed()
if not view.table.is_displayed:
# no table present, no CVs in this Org
return None
view.search(cv_name)
view.table[0][6].widget.item_select('Publish')
view = ContentViewVersionPublishView(self.browser)
is_displayed = view.publish_alert.is_displayed
view.cancel_button.click()
return is_displayed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
view = self.navigate_to(self, 'All')
self.browser.plugin.ensure_page_safe(timeout='5s')
view.wait_displayed()
if not view.table.is_displayed:
# no table present, no CVs in this Org
return None
view.search(cv_name)
view.table[0][6].widget.item_select('Publish')
view = ContentViewVersionPublishView(self.browser)
is_displayed = view.publish_alert.is_displayed
view.cancel_button.click()
return is_displayed
view = self.navigate_to(self, 'Publish', entity_name=cv_name)
return view.publish_alert.is_displayed

@sambible could you try this and see if it does the same thing as you want to do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically, this is targeting a version of the publish popup that comes up when using the dropdown menu from the cv index page, 'Publish' navigates to a different version of this page.

@LadislavVasina1 LadislavVasina1 added the CherryPick PR needs CherryPick to previous branches label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.16.z CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants