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

test: Drop locale change check from TestPages.testBasic #19028

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions test/verify/check-pages
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ OnCalendar=daily
b.wait_text("#password-group > label", "Passwort")

# Test all languages
# Test that pages do not oops and that locale is valid
# Test that pages do not oops

if not m.image.startswith("rhel-"):
return
Expand All @@ -270,6 +270,8 @@ OnCalendar=daily
self.assertIn('en-us', languages)
b.click("#display-language-modal footer button.pf-m-link") # Close the menu

is_pybridge = self.is_pybridge()

for language in languages:
# Remove failed units which will show up in the first terminal line
m.execute("systemctl reset-failed")
Expand All @@ -282,21 +284,22 @@ OnCalendar=daily
b.click("#display-language-modal footer button.pf-m-primary")
b.wait_language(language)

# Test some pages, end up in terminal
# Test some pages
for page in pages:
b.go(page)
b.enter_page(page)
b.wait_language(language)

locale = language.split("-")
if len(locale) == 1:
locale.append("")
locale = f"{locale[0]}_{locale[1].upper()}.UTF-8"
if not is_pybridge:
locale = language.split("-")
if len(locale) == 1:
locale.append("")
locale = f"{locale[0]}_{locale[1].upper()}.UTF-8"

b.wait_visible(".terminal .xterm-accessibility-tree")
b.wait_in_text(line_sel(1), "admin")
b.key_press("echo $LANG\r")
b.wait_in_text(line_sel(2), locale)
b.wait_visible(".terminal .xterm-accessibility-tree")
b.wait_in_text(line_sel(1), "admin")
b.key_press("echo $LANG\r")
b.wait_in_text(line_sel(2), locale)

b.switch_to_top()

Expand Down