enhancement: Bypass weak password prompt in tests

This change adds a needle and a check for the "weak password" prompt in
Arabic and Russian. If the prompt is detected, openQA should hit "Done"
twice as per the prompt.
This commit is contained in:
Al Bowles 2023-11-15 22:22:46 -06:00
parent ab0b05be3d
commit f605bec6ee
No known key found for this signature in database
GPG Key ID: 9B42314A30F1A3D1
5 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{
"area": [
{
"xpos": 650,
"ypos": 743,
"width": 335,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"LANGUAGE-arabic",
"anaconda_install_weak_password"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

View File

@ -0,0 +1,24 @@
{
"area": [
{
"height": 11,
"width": 36,
"type": "match",
"ypos": 145,
"xpos": 398
},
{
"xpos": 43,
"ypos": 746,
"width": 393,
"height": 11,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-rocky",
"LANGUAGE-russian",
"anaconda_install_weak_password"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

View File

@ -65,6 +65,9 @@ sub _do_root_and_user {
# Check username (and hence keyboard layout) if non-English
if (get_var('LANGUAGE')) {
assert_screen "anaconda_install_user_created";
if (check_screen "anaconda_install_weak_password") {
assert_and_click "anaconda_spoke_done";
}
}
}