mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Add and correct ids for workflow list selenium tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-link
|
||||
id="dropdownWorkflowDetails"
|
||||
id="workflow-dropdown"
|
||||
class="font-weight-bold"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
@@ -10,7 +10,7 @@
|
||||
<span :class="icon" />
|
||||
{{ workflow.name }}
|
||||
</b-link>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownWorkflowDetails">
|
||||
<div class="dropdown-menu" aria-labelledby="workflow-dropdown">
|
||||
<a
|
||||
v-for="ops in operations"
|
||||
:key="ops.label"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<b-row class="mb-3">
|
||||
<b-col cols="6">
|
||||
<b-input
|
||||
id="search-workflow"
|
||||
id="workflow-search"
|
||||
class="m-1"
|
||||
name="query"
|
||||
placeholder="search workflows"
|
||||
@@ -22,18 +22,18 @@
|
||||
</b-col>
|
||||
<b-col>
|
||||
<span class="float-right">
|
||||
<b-button id="new-workflow" class="m-1" @click="createWorkflow">
|
||||
<b-button id="workflow-create" class="m-1" @click="createWorkflow">
|
||||
<span class="fa fa-plus" />
|
||||
Create
|
||||
</b-button>
|
||||
<b-button id="import-workflow" class="m-1" @click="importWorkflow">
|
||||
<b-button id="workflow-import" class="m-1" @click="importWorkflow">
|
||||
<span class="fa fa-upload" />
|
||||
Import
|
||||
</b-button>
|
||||
</span>
|
||||
</b-col>
|
||||
</b-row>
|
||||
<b-table striped :fields="fields" :items="workflows" :filter="filter" @filtered="filtered">
|
||||
<b-table id="workflow-table" striped :fields="fields" :items="workflows" :filter="filter" @filtered="filtered">
|
||||
<template slot="name" slot-scope="row">
|
||||
<workflowdropdown
|
||||
:workflow="row.item"
|
||||
|
||||
@@ -940,8 +940,8 @@ class NavigatesGalaxy(HasDriver):
|
||||
self.click_masthead_workflow()
|
||||
|
||||
def workflow_index_table_elements(self):
|
||||
self.wait_for_selector_visible("tbody.workflow-search")
|
||||
table_elements = self.driver.find_elements_by_css_selector("tbody.workflow-search > tr:not([style*='display: none'])")
|
||||
self.wait_for_selector_visible("#workflow-table")
|
||||
table_elements = self.driver.find_elements_by_css_selector("#workflow-table > tbody > tr:not([style*='display: none'])")
|
||||
return table_elements
|
||||
|
||||
def workflow_index_table_row(self, workflow_index=0):
|
||||
@@ -954,11 +954,11 @@ class NavigatesGalaxy(HasDriver):
|
||||
return columns[column_index].text
|
||||
|
||||
def workflow_index_click_search(self):
|
||||
return self.wait_for_and_click_selector("input.search-wf")
|
||||
return self.wait_for_and_click_selector("#workflow-search")
|
||||
|
||||
def workflow_index_search_for(self, search_term=None):
|
||||
return self._inline_search_for(
|
||||
"input.search-wf",
|
||||
"#workflow-search",
|
||||
search_term,
|
||||
)
|
||||
|
||||
@@ -983,7 +983,7 @@ class NavigatesGalaxy(HasDriver):
|
||||
@retry_during_transitions
|
||||
def click_option():
|
||||
workflow_row = self.workflow_index_table_row(workflow_index=workflow_index)
|
||||
workflow_button = workflow_row.find_element_by_css_selector("button.dropdown-toggle")
|
||||
workflow_button = workflow_row.find_element_by_css_selector("#workflow-dropdown")
|
||||
workflow_button.click()
|
||||
|
||||
click_option()
|
||||
|
||||
@@ -249,8 +249,8 @@ tool_form:
|
||||
workflows:
|
||||
|
||||
selectors:
|
||||
new_button: '#new-workflow'
|
||||
import_button: '#import-workflow'
|
||||
new_button: '#workflow-create'
|
||||
import_button: '#workflow-import'
|
||||
|
||||
workflow_run:
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ DEFAULT_SELENIUM_BROWSER = "auto"
|
||||
DEFAULT_SELENIUM_REMOTE = False
|
||||
DEFAULT_SELENIUM_REMOTE_PORT = "4444"
|
||||
DEFAULT_SELENIUM_REMOTE_HOST = "127.0.0.1"
|
||||
DEFAULT_SELENIUM_HEADLESS = "auto"
|
||||
DEFAULT_SELENIUM_HEADLESS = "false"
|
||||
DEFAULT_ADMIN_USER = "test@bx.psu.edu"
|
||||
DEFAULT_ADMIN_PASSWORD = "testpass"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user