1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-30 09:33:07 +00:00

Update needles and tweak test logic for new anaconda-webui

New anaconda-webui changes the disk selection flow a bit, this
adapts to it. We can drop the conditional and make it a straight
assert-and-click once the new webui is stable for F41 and F42.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-09-25 16:50:10 -07:00
parent bb1f6e6ba0
commit 47302e9451
7 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 270,
"ypos": 337,
"width": 50,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_webui_select"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"type": "match",
"xpos": 363,
"ypos": 188,
"width": 17,
"height": 24
}
],
"properties": [],
"tags": [
"anaconda_install_destination_select_disk_1",
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 24,
"ypos": 249,
"xpos": 266,
"width": 141,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_webui_disk_select"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -17,6 +17,8 @@ sub run {
if (get_var("NUMDISKS") > 1) { if (get_var("NUMDISKS") > 1) {
assert_and_click "anaconda_webui_disk_select"; assert_and_click "anaconda_webui_disk_select";
assert_and_click "anaconda_install_destination_select_disk_1"; assert_and_click "anaconda_install_destination_select_disk_1";
# since webui 16, we have to click a Select button too
click_lastmatch if (check_screen "anaconda_webui_select");
} }
# assume default selection is the appropriate one; if it # assume default selection is the appropriate one; if it
# isn't, we'll fail soon enough # isn't, we'll fail soon enough