Commit Graph
98 Commits
Author SHA1 Message Date
John Chilton 2a92bc1ae2 Test user config objects before creating them.
Provide detailed error message before proceeding with creation.
2024-05-20 12:19:49 -04:00
John Chilton f95da89b3d Implement file source templates 2024-05-20 12:18:47 -04:00
Ahmed Awan 7eb3cc9059 allow exact query search (surrounded by quotes) in grids
Users can bypass the client filtering by surrounding their raw search query by quotes and sending the unprocessed filter to the backend.
2024-03-18 14:44:02 -05:00
guerler a97fd990e5 Adjust pages index test, add confirmation alert, reuse grid name helper 2024-02-19 18:56:51 -05:00
guerler fa9720437a Fix page pdf export test case 2024-02-19 17:11:38 -05:00
Alireza Heidari 4c4e83a1d5 fix Selenium and Integration Selenium tests 2024-02-16 12:02:49 +01:00
davelopez a47abb9a3b TMP: testing the tab element should be there... 2023-09-20 14:39:45 +02:00
guerler abc31492dd Fix ftp batch submission handler, adjust selenium tests 2023-08-12 08:17:53 +02:00
davelopez 00e4740ad8 Fix selenium selector for history import 2023-07-14 14:03:52 +02:00
Laila Los 7a44a166a4 fix selenium test 2023-07-07 04:39:35 +02:00
John Davis e12c7993f1 Merge pull request #16209 from martenson/more-pages
bring grids for (published) pages on par with workflows
2023-06-21 00:44:50 -04:00
John Davis 1a772d09c3 Merge pull request #16220 from jmchilton/test_decorators
Small test decorator improvements.
2023-06-20 15:04:53 -04:00
Martin Cech dd0750fe8e revert pdf_export test changes, that broke things for no reason
add test_pages another attempt to please selenium deity with more waiting for no reason
2023-06-19 16:45:16 -07:00
Martin Cech 443036a547 attempt to please selenium diety 2023-06-19 15:13:29 -07:00
Martin Cech bc971d9aa2 attempt to fix selenium mby? 2023-06-19 11:20:53 -07:00
John Chilton e592070420 Test decorator improvements.
- Add some basic typing to them.
- Include more information in assertion errors thrown when they target an incorrectly configured server.
- Allow for explicit anonymous interactor creation so we can cleanly apply these decorators to Selenium tests (Selenium test interactors use API keys that can be created from the UI - so they don't have complete user information available upfront).
- Add decorator skip_without_visualization_plugin.
- Add some decorators to the visualization tests and implement a second test.
- Use managed_history decorator to ensure existing test has an hid of 1 as assumed.
2023-06-18 12:34:21 -04:00
Martin Cech 814b80c85b Merge branch 'dev' into more-pages 2023-06-16 17:28:45 -07:00
Martin Cech 3ba401fa4a juggle the enums in schema
see https://github.com/galaxyproject/galaxy/pull/15774 for context

update page =pdf export selenium test

update return type to reflect matches being returned

cleanup the test file

run make format
2023-06-14 13:56:29 -07:00
John Chilton b6fcce9ae3 Selenium type fixes and annotations. 2023-06-13 17:00:09 -04:00
Martin CechandJohn Chilton a66560e522 implement filtering on admin jobs grid
add forgotten files, format

add more methods for selenium navigation

add needed selectors

jobs grid test: proper admin handling and wait for the workflow invocation

blackened

fix copypasta name

Co-authored-by: John Chilton <jmchilton@gmail.com>
2023-05-02 08:16:14 -07:00
Marius van den Beek 13e2e5090f Merge pull request #15800 from jmchilton/object_store_selection_tests
Initial end-to-end tests for separate quota sources per object store
2023-03-31 09:39:50 +02:00
John Chilton 8b8078ffb0 Initial end-to-end tests for separate quota per object store 2023-03-17 10:50:06 -04:00
nuwang 2b1573e7ff Add selenium test for file:// urls 2023-03-17 14:43:02 +05:30
John Chilton 3ed291f076 object store selection test 2023-03-13 15:32:32 -04:00
Nicola Soranzo 30f60493c3 Format Python code with black 23.1.0
with manual fixes to 3 files to make them compatible with black 22.12.0 .

We need to keep black pinned at `<23` until we vendorise `packaging`, since
the new version of black depends on `packaging >=22.0` which is the version
where `LegacyVersion` (which we use for tool lineages) was removed.
2023-02-01 23:51:03 +00:00
John Chilton 59044511f5 Merge branch 'fixup_refactoring_types' into trs-url-import 2022-12-12 10:20:27 -05:00
davelopez e85798511c Move test_history_export selenium test
This selenium test is for testing the previous history export UI that is based on jobs and not tasks.
Since Celery is enabled by default in the test instance it is more consistent to convert it into an integration selenium test to modify the config and disable Celery.
2022-12-10 11:28:41 +01:00
davelopez 6432a29739 Fix export record ready state + refactor test 2022-12-09 12:06:36 +01:00
davelopez b816fabaa9 Add integration selenium test for export tracking 2022-12-09 12:06:36 +01:00
davelopez 67b8ba46c5 Disable celery in existing history export selenium test
So the previous job-based export system is correctly tested
2022-12-09 12:06:35 +01:00
Finn Bacall 83e2de3d9e Fixed non-URL TRS import regression
Added selenium tests for TRS URL import
2022-12-05 13:02:59 +00:00
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