mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix tour tests.
This commit is contained in:
@@ -3,7 +3,8 @@ import os
|
||||
from galaxy.util import galaxy_root_path
|
||||
from .framework import (
|
||||
selenium_test,
|
||||
SeleniumTestCase
|
||||
SeleniumTestCase,
|
||||
TIMEOUT_MULTIPLIER,
|
||||
)
|
||||
|
||||
STOCK_TOURS_DIRECTORY = os.path.join(galaxy_root_path, "config", "plugins", "tours")
|
||||
@@ -11,30 +12,23 @@ STOCK_TOURS_DIRECTORY = os.path.join(galaxy_root_path, "config", "plugins", "tou
|
||||
|
||||
class TestStockToursTestCase(SeleniumTestCase):
|
||||
|
||||
# Test doesn't pass consistently on Jenkins yet, something is wrong is tool panel
|
||||
# interactions. Example problems:
|
||||
# - https://jenkins.galaxyproject.org/view/All/job/selenium/86/testReport/junit/selenium_tests.test_stock_tours/TestStockToursTestCase/test_core_galaxy_ui/
|
||||
# - https://jenkins.galaxyproject.org/view/All/job/selenium/83/testReport/junit/selenium_tests.test_stock_tours/TestStockToursTestCase/test_core_galaxy_ui/
|
||||
# - https://jenkins.galaxyproject.org/view/All/job/selenium/81/testReport/junit/selenium_tests.test_stock_tours/TestStockToursTestCase/test_core_galaxy_ui/
|
||||
# I'd think that just pausing a bit between transitions to allow the tool panel to
|
||||
# settle would fix it but it doesn't seem to in my initial testing. -John
|
||||
# Tracking with https://github.com/galaxyproject/galaxy/issues/3598
|
||||
# @selenium_test
|
||||
# def test_core_galaxy_ui(self):
|
||||
# sleep_on_steps = {
|
||||
# "Tools": 20, # Give upload a chance to take so tool form is filled in.
|
||||
# "History": 20,
|
||||
# }
|
||||
# self.run_tour(
|
||||
# os.path.join(STOCK_TOURS_DIRECTORY, "core.galaxy_ui.yaml"),
|
||||
# sleep_on_steps=sleep_on_steps,
|
||||
# )
|
||||
@selenium_test
|
||||
def test_core_galaxy_ui(self):
|
||||
sleep_on_steps = {
|
||||
"Tools": 20 * TIMEOUT_MULTIPLIER,
|
||||
"Select a tool": 2 * TIMEOUT_MULTIPLIER,
|
||||
"History": 20 * TIMEOUT_MULTIPLIER,
|
||||
}
|
||||
self.run_tour(
|
||||
os.path.join(STOCK_TOURS_DIRECTORY, "core.galaxy_ui.yaml"),
|
||||
sleep_on_steps=sleep_on_steps
|
||||
)
|
||||
|
||||
# @selenium_test
|
||||
# def test_core_scratchbook(self):
|
||||
# self.run_tour(
|
||||
# os.path.join(STOCK_TOURS_DIRECTORY, "core.scratchbook.yaml"),
|
||||
# )
|
||||
@selenium_test
|
||||
def test_core_scratchbook(self):
|
||||
self.run_tour(
|
||||
os.path.join(STOCK_TOURS_DIRECTORY, "core.scratchbook.yaml"),
|
||||
)
|
||||
|
||||
@selenium_test
|
||||
def test_core_history(self):
|
||||
|
||||
Reference in New Issue
Block a user