Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No blank cvpage test #12775

Merged
merged 17 commits into from
Oct 27, 2023
Merged

Conversation

sambible
Copy link
Contributor

Test for a strange BZ we received, where certain characters in other languages ( Like French, in this example ) broke the CV page, and caused it to appear blank.

This test simply changes the language for a user to French, and navigates to the CV page and asserts it's not blank.

This should not be used as an example of increasing or beginning automation efforts around translations, as there are other teams in red hat that do this. This is is simply automating something that got through as a BZ, and is here mostly as a guard against regressions of that particular BZ.

Requires sister airgun PR: SatelliteQE/airgun#991

@sambible sambible requested a review from a team as a code owner September 28, 2023 16:51
@sambible sambible changed the title No blank cvpage testy No blank cvpage test Sep 28, 2023
@lhellebr
Copy link
Contributor

I reviewed the airgun part and I'm ready to review this, may I just suggest making this in to exactly two commits, one with the file move and renaming new to old, and the other with new content? So the reviewers don't have a hard time identifying what is what.

@sambible
Copy link
Contributor Author

There's an older PR that should get merged soon, that has the move and rename as the majority of the content.

@sambible
Copy link
Contributor Author

sambible commented Oct 3, 2023

@lhellebr This should be much more reasonable to review now, the PR that this required is now merged :)

@sambible sambible added 6.14.z Introduced in or relating directly to Satellite 6.14 CherryPick PR needs CherryPick to previous branches labels Oct 3, 2023
tests/foreman/ui/test_contentview.py Outdated Show resolved Hide resolved
tests/foreman/ui/test_contentview.py Show resolved Hide resolved
).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()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at check_if_blank_in_french, I don't think that asserts anything.
Can you add a different assertion to check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's simply asserting that the table exists - the bug in this case was that in different languages, i.e. french, the page wouldn't display at all. So in this case, simply asserting that the table exists is sufficient.

@sambible
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_contentview.py -k 'test_no_blank_page_on_language_switch'
airgun: 991

@sambible
Copy link
Contributor Author

PRT passed pre merge stuff, going to rebase this one locally.

tests/foreman/ui/test_contentview.py Outdated Show resolved Hide resolved
@Griffin-Sullivan Griffin-Sullivan merged commit 7beff86 into SatelliteQE:master Oct 27, 2023
5 checks passed
shweta83 pushed a commit to shweta83/robottelo that referenced this pull request Apr 10, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants