Skip to content

Commit

Permalink
No blank cvpage test (#12775)
Browse files Browse the repository at this point in the history
* Renaming old CVUI tests to remove them from pipeline, and add first new CVUI tests

* Rename files, remove assignee, and remove search test

* Readd casecomponent marker to old cv tests

* Fix test docstring issues

* Add test for blank page in french language

* Update test docstring

* Update entity reference

* Create CV before UI session begins

* Update test steps
  • Loading branch information
sambible authored Oct 27, 2023
1 parent b2d4f98 commit 7beff86
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/foreman/ui/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 7beff86

Please sign in to comment.