Update selenium histories for sharing changes in #10754.

This commit is contained in:
John Chilton
2020-11-22 18:44:33 +01:00
committed by mvdbeek
parent 1c0a61e022
commit 547eb71dff
5 changed files with 16 additions and 6 deletions
+8 -2
View File
@@ -11,10 +11,16 @@
<b-button type="submit" variant="primary" @click="setUsername()">Set Username</b-button>
</div>
<div v-else>
<b-form-checkbox switch v-model="item.importable" @change="onImportable">
<b-form-checkbox switch class="make-accessible" v-model="item.importable" @change="onImportable">
Make {{ model_class }} accessible.
</b-form-checkbox>
<b-form-checkbox v-if="item.importable" switch v-model="item.published" @change="onPublish">
<b-form-checkbox
v-if="item.importable"
class="make-publishable"
switch
v-model="item.published"
@change="onPublish"
>
Make {{ model_class }} publicly available in
<a :href="published_url" target="_top">Published {{ plural_name }}</a> section.
</b-form-checkbox>
+4
View File
@@ -216,6 +216,10 @@ class NavigatesGalaxy(HasDriver):
def history_panel_name(self):
return self.history_panel_name_element().text
def make_accessible_and_publishable(self):
self.components.histories.sharing.make_accessible.wait_for_and_click()
self.components.histories.sharing.make_publishable.wait_for_and_click()
def history_contents(self, history_id=None, view='summary', datasets_only=True):
if history_id is None:
history_id = self.current_history_id()
+2 -1
View File
@@ -286,7 +286,8 @@ histories:
selectors:
unshare_user_button: '.unshare_user'
share_with_a_user_button: '#share_with_a_user'
make_accessible_and_publish: '#make_accessible_and_publish'
make_accessible: '.make-accessible label'
make_publishable: '.make-publishable label'
labels:
unshare: 'Unshare'
@@ -43,7 +43,7 @@ class SavedHistoriesTestCase(SharedStateSeleniumTestCase):
# Publish the history
self.click_grid_popup_option(self.history2_name, 'Share or Publish')
self.components.histories.sharing.make_accessible_and_publish.wait_for_and_click()
self.make_accessible_publishable()
self.navigate_to_histories_page()
@@ -199,8 +199,7 @@ class HistoryGridTestCase(SharedStateSeleniumTestCase):
def publish_current_history(self):
self.click_history_option('Share or Publish')
self.components.histories.sharing.make_accessible_and_publish.wait_for_and_click()
self.wait_for_selector_clickable('#disable_link_access_and_unpublish')
self.make_accessible_and_publishable()
def navigate_to_published_histories_page(self):
self.home()