-
Notifications
You must be signed in to change notification settings - Fork 66
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
Conversation
@sambible To which branches do you want this PR to be merged? |
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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jameerpathan111 can this get another review?
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