WebUI tests: Add simple test to check topology graph page is available

Ticket: https://pagure.io/freeipa/issue/8523

Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Serhii Tsymbaliuk 2020-11-12 11:48:34 +01:00
parent 1512acc7de
commit 69368fccdb
8 changed files with 24 additions and 0 deletions

View File

@ -1238,6 +1238,7 @@ jobs:
test_webui/test_config.py
test_webui/test_range.py
test_webui/test_realmdomains.py
test_webui/test_topology.py
test_webui/test_trust.py
template: *ci-master-latest
timeout: 7200

View File

@ -1335,6 +1335,7 @@ jobs:
test_webui/test_config.py
test_webui/test_range.py
test_webui/test_realmdomains.py
test_webui/test_topology.py
test_webui/test_trust.py
template: *ci-master-latest
timeout: 7200

View File

@ -1335,6 +1335,7 @@ jobs:
test_webui/test_config.py
test_webui/test_range.py
test_webui/test_realmdomains.py
test_webui/test_topology.py
test_webui/test_trust.py
template: *testing-master-latest
timeout: 7200

View File

@ -1432,6 +1432,7 @@ jobs:
test_webui/test_config.py
test_webui/test_range.py
test_webui/test_realmdomains.py
test_webui/test_topology.py
test_webui/test_trust.py
template: *testing-master-latest
timeout: 7200

View File

@ -1238,6 +1238,7 @@ jobs:
test_webui/test_config.py
test_webui/test_range.py
test_webui/test_realmdomains.py
test_webui/test_topology.py
test_webui/test_trust.py
template: *ci-master-previous
timeout: 7200

View File

@ -1335,6 +1335,7 @@ jobs:
test_webui/test_config.py
test_webui/test_range.py
test_webui/test_realmdomains.py
test_webui/test_topology.py
test_webui/test_trust.py
template: *ci-master-frawhide
timeout: 7200

View File

@ -0,0 +1,14 @@
#
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
from ipatests.test_webui.ui_driver import screenshot, UI_driver
class TestTopology(UI_driver):
@screenshot
def test_topology_graph(self):
self.init_app()
self.navigate_to_page('topology-graph')
self.assert_visible('.topology-view')

View File

@ -505,6 +505,10 @@ class UI_driver:
self.driver.get(self.get_url(entity, facet))
self.wait_for_request(n=3, d=0.4)
def navigate_to_page(self, page):
self.driver.get('/'.join([self.get_base_url(), '#', 'p', page]))
self.wait_for_request(n=3, d=0.4)
def navigate_by_menu(self, item, complete=True):
"""
Navigate by using menu