mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Fix more selenium library tests.
This commit is contained in:
@@ -278,8 +278,8 @@ var ListCollectionCreator = Backbone.View.extend(BASE_MVC.LoggableMixin)
|
||||
|
||||
/** describe what is wrong with a particular element if anything */
|
||||
_isElementInvalid: function(element) {
|
||||
if (element.history_content_type !== "dataset" && element.type !== "file") {
|
||||
return _l("is not a dataset or a library file");
|
||||
if (element.history_content_type === "dataset_collection") {
|
||||
return _l("is a collection, this is not allowed");
|
||||
}
|
||||
var validState = element.state === STATES.OK || _.contains(STATES.NOT_READY_STATES, element.state);
|
||||
if (!validState) {
|
||||
|
||||
@@ -662,8 +662,7 @@ class NavigatesGalaxy(HasDriver):
|
||||
self.driver.execute_script("$(arguments[0]).keyup();", search_box)
|
||||
|
||||
def libraries_folder_create(self, name):
|
||||
create_folder_button = self.wait_for_selector_clickable("#toolbtn_create_folder")
|
||||
create_folder_button.click()
|
||||
self.components.libraries.folder.add_folder.wait_for_and_click()
|
||||
|
||||
name_text_box = self.wait_for_selector_clickable("input[name='Name']")
|
||||
name_text_box.send_keys(name)
|
||||
|
||||
@@ -240,6 +240,8 @@ libraries:
|
||||
add_items_menu: '.add-library-items-datasets .dropdown-menu'
|
||||
add_items_options: '.add-library-items-datasets .dropdown-menu li a'
|
||||
|
||||
add_folder: '.add-library-items-folder'
|
||||
|
||||
add_to_history: '.add-to-history'
|
||||
add_to_history_datasets: '.add-to-history-datasets'
|
||||
add_to_history_collection: '.add-to-history-collection'
|
||||
|
||||
Reference in New Issue
Block a user