diff --git a/tests/foreman/ui/test_contentview.py b/tests/foreman/ui/test_contentview.py index caef3fc15cb..83df54ba541 100644 --- a/tests/foreman/ui/test_contentview.py +++ b/tests/foreman/ui/test_contentview.py @@ -40,3 +40,36 @@ 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 + 2. Attempt to view the CV UI, and read the CV table + + :expectedresults: CV UI is visible, and isn't a blank page + + :CaseLevel: System + + :BZ: 2163538 + + :customerscenario: true + """ + user_password = gen_string('alpha') + user = target_sat.api.User( + default_organization=module_org, + organization=[module_org], + password=user_password, + admin=True, + ).create() + cv = target_sat.api.ContentView(organization=module_org).create() + cv.publish() + 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.read_french_lang_cv()