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
Björn Grüning
6ff2397a91
Merge pull request #16122 from jmchilton/axe-selenium
...
Integrate accessibility testing into Selenium testing
2023-05-26 22:53:31 +02:00
John Chilton
de6fc52721
When writing test error debug directories, create a latest symlink to ease navigation.
2023-05-24 15:46:09 -04:00
John Chilton
f9e00f597a
axe testing
2023-05-24 12:54:25 -04:00
Assunta DeSanto
66289a4cf4
adding error for assertion in assert_item_peek_includes
2023-05-03 14:23:28 -04:00
Dannon Baker
575afab8fa
Update selenium hid text assertion
2023-03-03 07:58:44 -05:00
John Chilton
5fb47ac23f
WIP: selenium test decorators...
2022-11-26 11:31:13 -05:00
John Chilton
aeac8c6060
Restore test framework features...
2022-11-26 11:28:36 -05:00
mvdbeek
304b12c143
Move things around
2022-11-16 17:01:28 +01:00
Nicola Soranzo
10802d35a9
Mark non-slow unit tests with more relevant `@skip_if_github_down` decorator
2022-11-03 18:47:31 +00:00
Nicola Soranzo
5ca0aea54a
Drop nose
...
It's deprecated and unmaintained, and is broken under Python 3.10 .
2022-11-01 18:45:07 +00:00
Dannon
0298ee36f3
Merge pull request #14679 from nsoranzo/replace_unittest.TestCase
...
Replace ``unittest.TestCase`` with pytest-based partial re-implementation
2022-09-27 09:10:59 -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
guerler
d676345678
Clear out beta navigation selectors
2022-09-22 22:21:31 -04:00
guerler
399c6e9194
Remove is_beta_history flag from selenium tests
2022-09-22 20:20:52 -04:00
John Chilton
65c4edac6a
Rename has_yaml to yaml_content per PR review request.
2022-09-20 11:24:48 -04:00
Nicola Soranzo
36178dcd71
Drop GitHub workflow for legacy history Selenium tests
...
and `GALAXY_TEST_SELENIUM_BETA_HISTORY` environment variable.
Any way I think we were not testing the legacy history any more since
https://github.com/galaxyproject/galaxy/pull/11748 was merged, see
https://github.com/galaxyproject/galaxy/pull/11748#discussion_r850401243 .
2022-09-04 13:29:33 +01:00
Nicola Soranzo
23afbb64e2
Updates for stuff removed in Selenium 4.3.0
2022-07-13 10:06:33 -04:00
mvdbeek
c14d6164e9
Enable celery in API, Selenium, Integration tests
2022-05-25 19:46:47 +02:00
John Chilton
4e92f96d68
Selenium workflow management tests - improved assertion.
2022-05-09 18:41:21 -04:00
John Chilton
f8e34572f8
Improvements to workflow and invocation grid testing.
2022-04-28 10:32:46 -04:00
Dannon
6c58ecacbc
Merge pull request #13802 from guerler/history_hidden_deleted
...
Adjustments to hidden/deleted history links
2022-04-26 05:51:42 -07:00
Marius van den Beek
2b3486bb25
Merge pull request #13793 from mvdbeek/fetch_data_almost_everywhere
...
Port api/tools/fetch to FastAPI, add schema, and use `__FETCH_DATA__` in most tests
2022-04-26 13:36:51 +02:00
guerler
336bbd257d
Remove new size, empty not shown anymore
2022-04-25 14:19:09 -04:00
John Chilton
1042519c4f
Initial UI testing for workflow sharing.
2022-04-25 13:30:21 -04:00
mvdbeek
9abbac0180
Switch most tests to use `__DATA_FETCH__ instead of upload1`
2022-04-23 12:05:54 +02:00
John Chilton
2bf9366730
Workflow test cases for run target.
2022-03-31 17:22:46 -04:00
John Chilton
ff1d7760a5
Reduce duplication around waiting for workflow results in test_workflow_run.
2022-03-31 17:22:46 -04:00
John Chilton
f49d0da143
Workflow testing improvements.
...
- More typing.
- Use mixin to allow greater reuse of a couple things around running workflows and setting up test data.
2022-03-31 17:22:46 -04:00
John Chilton
4dae7c6f21
Disable implicit re-imports across the projects.
...
Exclude galaxy.util for now, but the exclusion is tracked in setup.cfg. Elimiantes a bunch of flake exception markers.
2022-03-15 19:58:42 -04: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
Dannon Baker
623a5e165a
Apply black formatting.
...
Apply isort.
2022-02-03 07:42:20 -05:00
mvdbeek
64d395862e
Merge branch 'release_21.09' into dev
2022-01-24 09:28:08 +01:00
mvdbeek
f7fde81b9c
Print exception
2022-01-23 13:43:06 +01: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
Nicola Soranzo
98ecc39b1b
Remove PhantomJS support, dropped in Selenium 4.0
2021-12-08 08:14:10 +00:00
Michael R. Crusoe
7819fdc7a6
tighten type ignores
2021-11-23 13:12:07 +01:00
davelopez
fb02841b7e
Adapt API tests to use JSON payload
...
See https://github.com/galaxyproject/galaxy/pull/12152 for details.
2021-10-29 10:31:59 +02:00
John Chilton
b682099285
Type fixes for selenium/framework.py.
2021-10-11 16:32:30 -04:00
John Chilton
885a23890c
Type fixes populators.
2021-10-11 16:32:30 -04:00
John Chilton
b4a8d7a246
Fix selenium populators to respect the json parameter.
...
Mirror behavior of the original request calls in the non-Selenium interactor - e.g. https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/tool_util/verify/interactor.py#L747
2021-10-04 11:31:56 -04:00
John Chilton
97f019e51b
Fix bug when restarting Galaxy in selenium integration tests.
2021-09-17 11:57:19 -04:00
John Chilton
157b0dc9b2
Sepearate set of tests for beta history panel.
2021-07-15 17:50:18 -04:00
John Chilton
bab5ab3502
Run test_history_panel.py against beta history panel.
...
Fix mouseover for renaming (wasn't working at all) and sync class decorators, etc.. across history implementations.
2021-07-15 17:50:18 -04:00
mvdbeek
11363a013e
Merge branch 'release_21.05' into dev
2021-06-24 12:22:55 +02:00
mvdbeek
57e8efcc55
Add timeout for requests
...
From https://docs.python-requests.org/en/master/user/advanced/#timeouts :
> Most requests to external servers should have a timeout attached, in
> case the server is not responding in a timely manner. By default,
> requests do not time out unless a timeout value is set explicitly.
> Without a timeout, your code may hang for minutes or more.
2021-06-20 14:10:16 +02:00
davelopez
dda3841e08
Add json parameter to BasePopulator methods
2021-06-18 17:43:39 +02:00
Sergey Golitsynskiy
0b094438e0
Enable pytest class-based tests; add flag if n/a
2021-06-01 12:30:25 -04:00