Skip to content

Commit

Permalink
Merge pull request #1024 from bareos/dev/fbergkemper/master/test-dash…
Browse files Browse the repository at this point in the history
…board-table-records

systemtests: add a test for the jobs last status table in webui
  • Loading branch information
pstorz committed Dec 16, 2021
2 parents 99a6134 + 942bc6e commit 51339c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
- webui: provide a notification that NDMP restores are NOT supported by webui [PR #1020]
- console: prune command gained support to prune multiple volumes at once [PR #966]
- webui: introduce a job timeline chart [PR #1017]
- systemtests: add a test for the jobs last status table in webui [PR #1024]

### Changed
- docs: check if configuration directives are defined as CamelCase in core. Otherwise building the documentation will fail with an error [PR #1008]
Expand Down Expand Up @@ -364,6 +365,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
[PR #1020]: https://github.com/bareos/bareos/pull/1020
[PR #1022]: https://github.com/bareos/bareos/pull/1022
[PR #1023]: https://github.com/bareos/bareos/pull/1023
[PR #1024]: https://github.com/bareos/bareos/pull/1024
[PR #1025]: https://github.com/bareos/bareos/pull/1025
[PR #1026]: https://github.com/bareos/bareos/pull/1026
[unreleased]: https://github.com/bareos/bareos/tree/master
1 change: 1 addition & 0 deletions systemtests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ configure_file(
message(STATUS "Looking for webui test requirements ...")

set(AVAILABLE_WEBUI_SELENIUM_TESTS
"admin-client_link_on_dashboard"
"admin-client_disabling"
"admin-rerun_job"
"admin-restore"
Expand Down
6 changes: 6 additions & 0 deletions webui/tests/selenium/webui-selenium-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ def disabled_test_login(self):
self.login()
self.logout()

def test_client_link_on_dashboard(self):
self.login()
self.select_navbar_element("dashboard")
self.wait_and_click(By.LINK_TEXT, self.client)
self.logout()

def test_client_disabling(self):
# This test navigates to clients, ensures client is enabled,
# disables it, closes a possible modal, goes to dashboard and reenables client.
Expand Down

0 comments on commit 51339c6

Please sign in to comment.