Skip to content

Commit

Permalink
Add test for blank page in french language
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Sep 18, 2023
1 parent 3a5a955 commit 47538ee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/foreman/ui/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,34 @@ def test_positive_create_cv(session, target_sat):
with target_sat.ui_session() as session:
session.contentview_new.create(dict(name=cv))
assert session.contentview_new.search(cv)[0]['Name'] == cv


@pytest.mark.tier2
def test_no_blank_page_on_language_switch(session, target_sat, module_org):
"""Able to view the new CV UI when the language is set to something other
than English
:id: d8745aca-b199-4c7e-a970-b1f0f5c5d56c
:steps:
1. Change the Satellite system language to french or czech
2. Attempt to view the CV UI, and perform basic action
:expectedresults: CV UI is visible, and isn't a blank page
:CaseLevel: System
:CaseImportance: High
:BZ: 2163538
"""
user_password = gen_string('alpha')
user = target_sat.api.User(
default_organization=module_org,
organization=[module_org],
password=user_password,
admin=True,
).create()
with target_sat.ui_session(user=user.login, password=user_password) as session:
session.user.update(user.login, {'user.language': 'Français'})
assert session.contentview_new.check_if_blank_in_french()

0 comments on commit 47538ee

Please sign in to comment.