Commit Graph
29760 Commits
Author SHA1 Message Date
Dannon Baker 1aadd7866f Make client. 2017-09-11 11:33:16 -04:00
John Chilton 79a37830bb Small improvements to workflow editor Selenium tests.
I saw a failed test earlier that would have been fixed by a switch to wait_for_and_click in workflow_editor_click_options. This makes that switch and moves some of these workflow editor helper functions into navigates_galaxy.py for reuse by other test cases and by library users.
2017-09-11 11:30:36 -04:00
Dannon Baker a190903bd0 Merge pull request #4588 from jmchilton/selenium_fixes_25
Make history sharing Selenium tests more robust and informative.
2017-09-11 11:21:14 -04:00
John Chilton 31f2168c3d Merge pull request #4587 from anatskiy/saved_histories_tests
Add Selenium tests for the Saved Histories
2017-09-11 11:20:57 -04:00
Dannon Baker 1359965a99 Merge pull request #4589 from jmchilton/selenium_fixes_26
Improve error reporting in Selenium tests when ``wait_for_logged_in`` fails.
2017-09-11 11:03:07 -04:00
Evgeny Anatskiy 5146455164 generate random history names for the published history grid tests 2017-09-11 16:45:34 +02:00
Dannon Baker a5dbf29e13 Use standard naming for Utils import. 2017-09-11 10:35:59 -04:00
Dannon Baker 2c40efb6c2 Minor refactor, use a single Utils.setWindowTitle() method. 2017-09-11 10:32:55 -04:00
Dannon Baker 59d0e297f7 When title isn't set, revert to the default -- otherwise display()'d contents without titles show up with the previous and incorrect titles. 2017-09-11 09:38:13 -04:00
Evgeny Anatskiy dcc18134e7 generate random history names 2017-09-11 15:30:09 +02:00
Dannon Baker 6b14dda216 Grids do a late initialization and the title isn't available until this happens (after display()), so provide a way to allow views to set title late if necessary. 2017-09-11 08:47:21 -04:00
John Chilton dcbe30515f More robust rename for histories.
I think the wait_for_and_click_selector method will prevent errors like this one https://jenkins.galaxyproject.org/job/selenium/249/testReport/selenium_tests.test_published_histories_grid/HistoryGridTestCase/test_history_grid_histories/.
2017-09-10 19:44:16 -04:00
John Chilton 1e832733db Improve error reporting in Selenium tests when `wait_for_logged_in` fails.
Previously just a notification about waiting for ``a.loggedin-only`` failed would show up. This doesn't indicate if the login failed completely or the masthead just failed to update. I suspect the login failed completely, but just in case I've updated the error handling to actually ping the API and check and print a better error message with this information.

New messages look like:

```
TimeoutException: Message: Failed waiting for masthead to update for login, but user API response indicates [test0ol61vs8fo] is logged in. This seems to be a bug in Galaxy. API response was [{u'username': u'test0ol61vs8fo', u'quota_percent': None, u'preferences': {}, u'total_disk_usage': 0.0, u'deleted': False, u'id': u'adb5f5c93f827949', u'nice_total_disk_usage': u'0 bytes', u'quota': None, u'email': u'test0ol61vs8fo@test.test', u'is_admin': False, u'tags_used': [], u'purged': False}].Timeout waiting on CSS selector [a.loggedin-only-x] to become visible.
```

and

```
TimeoutException: Message: Failed waiting for masthead to update for login, API indicates no user is logged in - there is a problem with this test. API response was [{u'quota_percent': None, u'nice_total_disk_usage': u'0 bytes', u'total_disk_usage': 0}]. Timeout waiting on CSS selector [a.loggedin-only] to become visible.
```
2017-09-10 19:24:16 -04:00
John Chilton e2730ca714 Reduce duplication, increase robustness in Selenium history tests.
- set_tags() appeared in both published and saved history tests, refactored into navigates_galaxy with function name history_panel_add_tags
- is_displayed() appeared in both published and saved history tests, refactored into has_driver as selector_is_displayed
- Introduced history_panel_rename to reduce duplication across history panel tests and newer published and saved history tests.
- Removed custom history click option helper in saved and published history tests and just used the variant in navigates_galaxy.
- use wait_for_and_click a couple more places...
2017-09-10 17:58:10 -04:00
John Chilton b61ca47c99 Make history sharing tests more robust and informative.
- Be sure when sharing a history with a user we wait to actually see that user's e-mail address appear in the history's sharing list after submission.
- Print something for the failed history sharing assertions (I'm pretty sure they are 403 errors because some aspect of the sharing or login didn't work - but might as well verify).
2017-09-10 17:02:33 -04:00
Evgeny Anatskiy 8533c71787 use the wait_for_and_click_selector function 2017-09-10 18:44:42 +02:00
Evgeny Anatskiy d78e60186b Merge branch 'dev' into saved_histories_tests 2017-09-10 18:22:19 +02:00
Evgeny Anatskiy ca59aaeda0 add the tags test 2017-09-10 17:16:26 +02:00
Björn Grüning a21f05d9a8 Merge pull request #4586 from jmchilton/selenium_fixes_24
Fix another issue with sorting by owner for published histories Selenium test.
2017-09-10 10:48:52 +02:00
Björn Grüning a2ef2cc4b9 Merge pull request #4582 from jmchilton/selenium_fixes_23
Retry failed clicks more aggressively for Selenium tests.
2017-09-10 10:47:51 +02:00
Dannon Baker 928ad29493 Localize displayed titles. 2017-09-09 14:52:58 -04:00
John Chilton b9cff7ad91 Fix another issue with sorting by owner for published histories Selenium test.
Locally this never happens, but remotely sometimes when sorting by owner the histories are sorted by owner but not in the same order as the test was asserting. I would assume this is likely a postgres vs. sqlite difference - perhaps the former doesn't sort the rows by the order they were created within equal sort classifications (i.e. same owner) but the latter does. I've fixed this - the test should not have been asserting such a strong condition I don't think.
2017-09-09 08:28:01 -04:00
John Chilton 900699037d Retry failed clicks more aggressively for Selenium tests.
Would have prevented from this (https://jenkins.galaxyproject.org/job/selenium/238/testReport/junit/selenium_tests.test_history_panel/HistoryPanelTestCase/test_refresh_preserves_state/) failure in retrospect. Also refactor that common pattern into a helper and use throughout. Add missing @selenium_test decorator on that test also - it would have retried if this had been there and we would have a screenshot.
2017-09-09 08:18:36 -04:00
chambm 97264e3de8 Try to start personal CI build 2017-09-08 15:46:24 -05:00
Dannon Baker f83188e7f3 Normal grid title propagation. 2017-09-08 16:20:50 -04:00
Dannon Baker 935f25aa32 Titles for abstract grids w/ plural set. 2017-09-08 15:49:22 -04:00
Martin Cech 28fd37be40 Merge pull request #4576 from jmchilton/selenium_fixes_21
Make submitting logins for Selenium tests a bit more robust.
2017-09-08 15:00:44 -04:00
John Chilton 2259c7d413 Retry failed clicks more aggressively for Selenium tests.
Would have prevented from this (https://jenkins.galaxyproject.org/job/selenium/238/testReport/junit/selenium_tests.test_history_panel/HistoryPanelTestCase/test_refresh_preserves_state/) failure in retrospect. Also refactor that common pattern into a helper and use throughout. Add missing @selenium_test decorator on that test also - it would have retried if this had been there and we would have a screenshot.
2017-09-08 14:42:24 -04:00
Dannon Baker 91eb849500 Use 'Galaxy / Brand' consistent styling instead of 'Galaxy | Brand' 2017-09-08 14:22:12 -04:00
chambm 8adbf03f56 Add show/hide deleted/hidden links when history is filtered by find box; addresses #4103 2017-09-08 13:22:07 -05:00
Dannon Baker 9a0506c5c0 Include Galaxy brand in titles. 2017-09-08 14:20:17 -04:00
Dannon Baker 2cb8a28f7b Rebuild. 2017-09-08 12:31:54 -04:00
Dannon Baker 6b2277e37d Automatically append 'Galaxy | ' to title instead of requiring it for all view titles. 2017-09-08 12:29:09 -04:00
Dannon Baker 84de84294c History List, Tours, and User Preferences titles 2017-09-08 12:24:46 -04:00
Martin Cech 5b87754ab7 refactor traversing to use latest() instead 2017-09-08 11:57:48 -04:00
Martin Cech 0a54a313b7 remove unneeded property, fix import from history targets
some refactoring
2017-09-08 11:57:44 -04:00
Dannon Baker 9a66adb4fe Standard (for now) paren spacing. 2017-09-08 11:11:15 -04:00
Dannon Baker 82267855ed Support for applying window title on display() of views. 2017-09-08 11:08:53 -04:00
jvolkening 08b5a47c39 Merge branch 'dev' of https://github.com/galaxyproject/galaxy into fast5 2017-09-08 08:52:50 -05:00
jvolkening 49258a7df8 fixed sniff order and misc linting errors 2017-09-08 08:48:52 -05:00
Eric Rasche 508fdb9d2b Merge pull request #3330 from bgruening/hicbrowser
HiCBrowser as Galaxy IE
2017-09-08 14:18:18 +02:00
Martin Cech f623613a39 Merge pull request #4577 from jmchilton/selenium_fixes_22
Fix logic error in new published histories sort by owner test.
2017-09-07 16:58:34 -04:00
John Chilton 5e179df2a8 Fix logic error in new published histories sort by owner test.
I switched to randomly generated usernames without actually ensure the random usernames would be generated in the same lexiographic order - that wasn't super bright of me. That sort by owner test should pass as frequently as the other tests in that test case class now.
2017-09-07 16:35:44 -04:00
John Chilton 46b799dfbb Make submitting logins for Selenium tests a bit more robust.
There are a few different transiently failing tests on Jenkins that seem to fail because the test thinks Galaxy is logged in but it is not. So now after we click the login button in Selenium - we will wait for to see the "Register or Login" button turn into the "User" button.

This is a similar problem and fix to what was done in #4562 - which seemed to help.
2017-09-07 15:51:38 -04:00
Dannon Baker a8df8729b8 Merge pull request #4519 from shiltemann/biom2_datatype
add biom2 datatype
2017-09-07 15:42:54 -04:00
Marius van den Beek b3f0f36c89 Merge pull request #4574 from dannon/history_options_fixes
Fix delete option in history menu
2017-09-07 21:29:28 +02:00
jvolkening 297d2353ce add datatype tests 2017-09-07 13:24:05 -05:00
Dannon Baker 31043698d0 Fix purge option in history menu. Now delete&purge use modern models/handling. 2017-09-07 13:30:53 -04:00
Dannon Baker 65b2fe8a4a Fix delete option in history menu. 2017-09-07 13:23:21 -04:00
jvolkening f07c6a9843 optimized sniffing, subclassed different tarball types 2017-09-07 12:04:33 -05:00