Merge pull request #196 from akatch/akatch/hit-weak-password-prompt

enhancement: Bypass weak password prompt in tests
This commit is contained in:
Alan Marshall 2023-11-16 09:49:46 +00:00 committed by GitHub
commit 0284ebe995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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";
}
}
}