Commit Graph
67 Commits
Author SHA1 Message Date
John Chilton 5fb47ac23f WIP: selenium test decorators... 2022-11-26 11:31:13 -05:00
guerler 4c6581d000 Adjust selenium test 2022-10-16 00:16:47 -04:00
Nicola Soranzo c35d8f2a06 Replace `unittest.TestCase` with pytest-based partial re-implementation
Also:
- Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected
  by pytest only because they were `unittest.TestCase` derived, but normally
  pytest collects only test classes whose name starts with `Test`, see
  https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
2022-09-27 03:34:58 +01:00
Nicola Soranzo 853c8f913a Use `self.assertRaises*()` as a context manager 2022-09-21 23:50:06 +01:00
Nicola Soranzo 23afbb64e2 Updates for stuff removed in Selenium 4.3.0 2022-07-13 10:06:33 -04:00
Nicola Soranzo 7466ab89a6 Move `uses_shed.py to galaxy_test.driver`
to break circular dependency between galaxy-test-base and
galaxy-test-driver packages.

Also:
- Use f-string.
2022-06-28 18:33:05 +01:00
mvdbeek 28d58edbcc Use celery in more integration tests 2022-05-26 12:48:44 +02:00
mvdbeek 927be0ebe1 Drop redundant UsesCeleryTasks 2022-05-26 12:48:44 +02:00
Nicola Soranzo 9cd73e20c9 Fix typo in f-string 2022-05-06 13:29:13 +01:00
John Chilton f315a7db5c Potential fix for certain kind of transient Selenium library errors.
select_add_items_permission_option failed unexpectedly in a Selenium test https://github.com/galaxyproject/galaxy/runs/6130989843?check_suite_focus=true with this in the stack trace:

```
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <ul class="multiselect__content" style="display: inline-block;">...</ul> is not clickable at point (324, 547). Other element would receive the click: <div data-v-5b55ce08="" class="col">...</div>
E         (Session info: headless chrome=100.0.4896.75)
```

I think this means something was preventing it from being clickable - presumably a toastr message or something. This attempts to fix that issue two ways - by making the retry dec
orator a little more aggressive and by ensuring the element is in fact clickable before clicking it.
2022-04-26 09:50:53 -04:00
Marius van den Beek cf46c5c1fa Merge pull request #13777 from guerler/fix_tour_tests
Adjust tours and tour tests to new history
2022-04-22 15:38:27 +02:00
John Chilton 59038bc4bf Add navigates_galaxy.py convention for jumping to URLs not via navigating the landing to them. 2022-04-21 10:02:11 -04:00
guerler 1c643a63ff Adjust tours and tour tests to new history, remove final occurance of use_legacy_history 2022-04-21 04:20:33 -04:00
Aysam Guerler d78a733010 Merge pull request #11748 from dannon/new-history-default
Allow site-specific history default, leave fallback option to legacy
2022-04-13 17:17:52 -04:00
John Chilton fa4ee7b9b9 Implement asynchronous download APIs using STS.
- Allow serving zipped collections using STS.
- Allow serving markdown PDFs using STS.
2022-04-13 09:53:56 -04:00
guerler dac63850f1 Call use_legacy_history helper in failing selenium tests 2022-04-12 22:04:54 -04:00
John Chilton 5104147117 Add integration test for TRS check mark on imported workflows.
Swap embedded style for scoped style in Dropdown Vue component.
2022-04-04 20:40:05 -04:00
John Chilton ef7b7a06ad Add workflow run settings button to simplified form. 2022-03-31 17:22:46 -04:00
John Chilton 2bf9366730 Workflow test cases for run target. 2022-03-31 17:22:46 -04:00
Nicola Soranzo b25334ccae Merge branch 'release_22.01' into dev 2022-03-28 19:05:48 +01:00
mvdbeek 96934420e8 Attach dataset source in model store imports
Fixes
```
FAILED test/integration_selenium/test_dataset_details_source_transforms.py::DatasetSourceTransformSeleniumIntegrationTestCase::test_displaying_source_transformations_grooming
FAILED test/integration_selenium/test_dataset_details_source_transforms.py::DatasetSourceTransformSeleniumIntegrationTestCase::test_displaying_source_transformations_posixlines
FAILED test/integration_selenium/test_dataset_details_source_transforms.py::DatasetSourceTransformSeleniumIntegrationTestCase::test_displaying_source_transformations_spaces_to_tabs
```
2022-03-17 10:11:13 +01:00
mvdbeek a8d9801785 Merge branch 'release_22.01' into dev 2022-03-15 15:21:15 +01:00
mvdbeek 4bb6802d31 Return actual tool id instead of specified tool id in step
We do also return the version changes in the module, so this should be
fine. Fixes https://github.com/galaxyproject/galaxy/issues/13524.
2022-03-14 13:37:50 +01:00
John ChiltonandDavid López 72b42f1c2a Update test/integration_selenium/test_pages_pdf_export.py
Co-authored-by: David López <46503462+davelopez@users.noreply.github.com>
2022-03-09 09:43:08 -05:00
John Chilton db4f530a57 Integration test for PDF export. 2022-03-08 15:32:22 -05:00
John Chilton defea67752 Make test_user_library_permissions.py more robust. 2022-03-04 11:07:26 -05:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
mvdbeek f0baddd905 Merge branch 'release_21.09' into dev 2022-01-21 16:38:36 +01:00
mvdbeek d5b31ee55a Fix tool id not getting updated on tool update 2022-01-19 14:46:31 +01:00
John Chilton 9d18c91aca Display dataset source transform information. 2021-11-12 11:42:21 -05:00
guerler d0233cf280 Adjust tool filter test case 2021-11-01 14:21:12 -04:00
Dannon Baker c3605c7112 Merge remote-tracking branch 'upstream/release_21.09' into dev 2021-10-19 09:59:21 -04:00
Oleg Zharkov b040e3cdb8 fix test_history_import_export_ftp Selenium test 2021-10-12 20:00:00 +02:00
John Chilton 865b595f2c Type fixes: integration_setup.py 2021-10-11 16:32:29 -04:00
Oleg Zharkov 29ba11a8f8 fix python linting 2021-10-08 19:43:30 +02:00
Oleg Zharkov b43ce1e3ad fix and compliment exposting history to remote_files test 2021-10-08 19:43:29 +02:00
John Chilton 97f019e51b Fix bug when restarting Galaxy in selenium integration tests. 2021-09-17 11:57:19 -04:00
John Chilton 5e254b6e50 Selenium test for tool panel views. 2021-09-09 09:45:20 -04:00
mvdbeek cb744492c8 Allow whitespace in TRS search term 2021-06-25 15:08:24 +02:00
mvdbeek 30ba4b825e Fix TRS search if search term contains -
Such as `organization: iwc-workflows`.
2021-06-25 11:06:32 +02:00
mvdbeek 13694cbdeb Fix various TRS bugs and add tests
The test should cover all of the existing functionality and
runs against workflowhub and dockstore.
2021-06-21 21:36:23 +02:00
mvdbeek e5b4af2704 Add selenium test for uploading multiple files 2021-05-20 18:58:49 +02:00
mvdbeek 4e06087872 Wait for upload and verify history is OK 2021-05-18 16:19:59 +02:00
mvdbeek 2edb301654 Move shared test setup to lib/galaxy_test/driver/integration_setup.py 2021-05-03 16:18:21 +02:00
mvdbeek 35b200cd5a Add selenium test for file_source upload 2021-04-23 15:31:42 +02:00
Oleg Zharkov ee33b51ba4 implement export collection library->history 2021-04-07 16:03:53 +03:00
Oleg Zharkov 3f4094948e fix python style 2021-03-17 15:50:09 +02:00
Oleg Zharkov d7504a2cba make selenium tests happy 2021-03-17 15:46:00 +02:00
Oleg Zharkov f880010b51 implement selenium test 2021-02-19 13:59:37 +02:00
John Chilton e3dedd86bc Performance metrics for tests. 2021-02-12 20:44:05 -05:00