mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-21 20:51:25 +00:00
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:
parent
ab0b05be3d
commit
f605bec6ee
@ -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"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/rocky-anaconda_install_weak_password-arabic-20231116.png
Normal file
BIN
needles/rocky-anaconda_install_weak_password-arabic-20231116.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 123 KiB |
@ -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 |
@ -65,6 +65,9 @@ sub _do_root_and_user {
|
|||||||
# Check username (and hence keyboard layout) if non-English
|
# Check username (and hence keyboard layout) if non-English
|
||||||
if (get_var('LANGUAGE')) {
|
if (get_var('LANGUAGE')) {
|
||||||
assert_screen "anaconda_install_user_created";
|
assert_screen "anaconda_install_user_created";
|
||||||
|
if (check_screen "anaconda_install_weak_password") {
|
||||||
|
assert_and_click "anaconda_spoke_done";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user