mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ui_tests: introduce new test_misc cases file
By this commit we introduce new test_misc cases file to test various miscellaneous cases that do not fit to other suites. In this cases that "version" is present in profile`s "about". https://pagure.io/freeipa/issue/7507 Reviewed-By: Petr Vobornik <pvoborni@redhat.com> Reviewed-By: Varun Mylaraiah <mvarun@redhat.com>
This commit is contained in:
28
ipatests/test_webui/test_misc_cases.py
Normal file
28
ipatests/test_webui/test_misc_cases.py
Normal file
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
|
||||
#
|
||||
|
||||
"""
|
||||
Place for various miscellaneous test cases that do not fit to other suites
|
||||
"""
|
||||
|
||||
from ipatests.test_webui.ui_driver import UI_driver
|
||||
from ipatests.test_webui.ui_driver import screenshot
|
||||
import pytest
|
||||
import re
|
||||
|
||||
|
||||
@pytest.mark.tier1
|
||||
class TestMiscCases(UI_driver):
|
||||
|
||||
@screenshot
|
||||
def test_version_present(self):
|
||||
|
||||
self.init_app()
|
||||
|
||||
self.profile_menu_action('about')
|
||||
|
||||
about_text = self.get_text('div[data-name="version_dialog"] p')
|
||||
ver_re = re.compile('version: .*')
|
||||
assert re.search(ver_re, about_text), 'Version not found'
|
||||
self.dialog_button_click('ok')
|
Reference in New Issue
Block a user