mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-03-01 02:14:31 +00:00
webui: handle language selection screen
webui has a language selection screen as of anaconda-42.24-1, so handle it. For now still handle it not appearing, we can drop that path once the update is stable and in a compose. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
2229d0e8f5
commit
f473de351c
16
needles/anaconda/webui/webui_install_lang-20250128.json
Normal file
16
needles/anaconda/webui/webui_install_lang-20250128.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 265,
|
||||||
|
"ypos": 168,
|
||||||
|
"width": 159,
|
||||||
|
"height": 22,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"_ANACONDA_WEBUI",
|
||||||
|
"anaconda_select_install_lang"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda/webui/webui_install_lang-20250128.png
Normal file
BIN
needles/anaconda/webui/webui_install_lang-20250128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 284,
|
||||||
|
"ypos": 306,
|
||||||
|
"width": 165,
|
||||||
|
"height": 19,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"LANGUAGE-english",
|
||||||
|
"anaconda_select_install_lang_filtered",
|
||||||
|
"anaconda_select_install_lang_selected"
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 274,
|
||||||
|
"ypos": 214,
|
||||||
|
"width": 68,
|
||||||
|
"height": 21,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"anaconda_select_install_lang_input"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda/webui/webui_install_lang_input-20250128.png
Normal file
BIN
needles/anaconda/webui/webui_install_lang_input-20250128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
16
needles/anaconda/webui/webui_installmethod-20230821.json
Normal file
16
needles/anaconda/webui/webui_installmethod-20230821.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"height": 20,
|
||||||
|
"type": "match",
|
||||||
|
"width": 241,
|
||||||
|
"xpos": 264,
|
||||||
|
"ypos": 318
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"anaconda_webui_installmethod",
|
||||||
|
"_ANACONDA_WEBUI"
|
||||||
|
]
|
||||||
|
}
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
16
needles/anaconda/webui/webui_installmethod-20250128.json
Normal file
16
needles/anaconda/webui/webui_installmethod-20250128.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"ypos": 287,
|
||||||
|
"type": "match",
|
||||||
|
"height": 23,
|
||||||
|
"width": 263,
|
||||||
|
"xpos": 265
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"anaconda_webui_installmethod",
|
||||||
|
"_ANACONDA_WEBUI"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda/webui/webui_installmethod-20250128.png
Normal file
BIN
needles/anaconda/webui/webui_installmethod-20250128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"area": [
|
|
||||||
{
|
|
||||||
"xpos": 264,
|
|
||||||
"ypos": 158,
|
|
||||||
"width": 311,
|
|
||||||
"height": 25,
|
|
||||||
"type": "match"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"properties": [],
|
|
||||||
"tags": [
|
|
||||||
"anaconda_webui_welcome"
|
|
||||||
]
|
|
||||||
}
|
|
@ -193,24 +193,24 @@ sub run {
|
|||||||
while ($tries) {
|
while ($tries) {
|
||||||
$tries -= 1;
|
$tries -= 1;
|
||||||
assert_and_click("live_start_anaconda_icon", dclick => $dclick);
|
assert_and_click("live_start_anaconda_icon", dclick => $dclick);
|
||||||
last if (check_screen ["anaconda_select_install_lang", "anaconda_webui_welcome"], 180);
|
last if (check_screen ["anaconda_select_install_lang", "anaconda_webui_installmethod"], 180);
|
||||||
die "Launching installer failed after 5 tries!" unless ($tries);
|
die "Launching installer failed after 5 tries!" unless ($tries);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# wait for anaconda to appear
|
# wait for anaconda to appear
|
||||||
unless (check_screen ["anaconda_select_install_lang", "anaconda_webui_welcome"], 300) {
|
unless (check_screen ["anaconda_select_install_lang", "anaconda_webui_installmethod"], 300) {
|
||||||
# may be hitting https://bugzilla.redhat.com/show_bug.cgi?id=2329581,
|
# may be hitting https://bugzilla.redhat.com/show_bug.cgi?id=2329581,
|
||||||
# try pressing a key
|
# try pressing a key
|
||||||
send_key "spc";
|
send_key "spc";
|
||||||
assert_screen ["anaconda_select_install_lang", "anaconda_webui_welcome"], 300;
|
assert_screen ["anaconda_select_install_lang", "anaconda_webui_installmethod"], 300;
|
||||||
record_soft_failure "boot hung until key pressed - #2329581";
|
record_soft_failure "boot hung until key pressed - #2329581";
|
||||||
}
|
}
|
||||||
# on webUI path we are done now, also set a var so later
|
# on webUI path set a var so later tests know
|
||||||
# tests know if we're on the webUI path
|
if (match_has_tag "_ANACONDA_WEBUI") {
|
||||||
if (match_has_tag "anaconda_webui_welcome") {
|
|
||||||
set_var("_ANACONDA_WEBUI", 1);
|
set_var("_ANACONDA_WEBUI", 1);
|
||||||
return;
|
# if we got straight to install method screen, we're done
|
||||||
|
return if (match_has_tag "anaconda_webui_installmethod");
|
||||||
}
|
}
|
||||||
# we click to work around RHBZ #1566066 if it happens
|
# we click to work around RHBZ #1566066 if it happens
|
||||||
click_lastmatch;
|
click_lastmatch;
|
||||||
@ -224,14 +224,14 @@ sub run {
|
|||||||
# appropriate language, here
|
# appropriate language, here
|
||||||
assert_and_click "anaconda_select_install_lang_filtered";
|
assert_and_click "anaconda_select_install_lang_filtered";
|
||||||
assert_screen "anaconda_select_install_lang_selected", 10;
|
assert_screen "anaconda_select_install_lang_selected", 10;
|
||||||
assert_and_click "anaconda_select_install_lang_continue";
|
assert_and_click ["anaconda_select_install_lang_continue", "anaconda_webui_next"];
|
||||||
|
|
||||||
# wait 180 secs for hub or Rawhide warning dialog to appear
|
# wait 180 secs for hub or Rawhide warning dialog to appear
|
||||||
# (per https://bugzilla.redhat.com/show_bug.cgi?id=1666112
|
# (per https://bugzilla.redhat.com/show_bug.cgi?id=1666112
|
||||||
# the nag screen can take a LONG time to appear sometimes).
|
# the nag screen can take a LONG time to appear sometimes).
|
||||||
# If the hub appears, return - we're done now. If Rawhide
|
# If the hub appears, return - we're done now. If Rawhide
|
||||||
# warning dialog appears, accept it.
|
# warning dialog appears, accept it.
|
||||||
if (check_screen ["anaconda_rawhide_accept_fate", "anaconda_main_hub"], 180) {
|
if (check_screen ["anaconda_rawhide_accept_fate", "anaconda_main_hub", "anaconda_webui_installmethod"], 180) {
|
||||||
if (match_has_tag("anaconda_rawhide_accept_fate")) {
|
if (match_has_tag("anaconda_rawhide_accept_fate")) {
|
||||||
assert_and_click "anaconda_rawhide_accept_fate";
|
assert_and_click "anaconda_rawhide_accept_fate";
|
||||||
}
|
}
|
||||||
@ -247,7 +247,7 @@ sub run {
|
|||||||
# Here, we will watch for the graphical elements in Anaconda main hub.
|
# Here, we will watch for the graphical elements in Anaconda main hub.
|
||||||
my $branched = get_var('VERSION');
|
my $branched = get_var('VERSION');
|
||||||
if ($identification eq 'true' or ($branched ne "Rawhide" && lc($branched) ne "eln")) {
|
if ($identification eq 'true' or ($branched ne "Rawhide" && lc($branched) ne "eln")) {
|
||||||
check_left_bar(); # See utils.pm
|
check_left_bar() unless get_var('_ANACONDA_WEBUI'); # See utils.pm
|
||||||
check_prerelease();
|
check_prerelease();
|
||||||
check_version();
|
check_version();
|
||||||
}
|
}
|
||||||
@ -255,7 +255,7 @@ sub run {
|
|||||||
# didn't match anything: if the Rawhide warning didn't
|
# didn't match anything: if the Rawhide warning didn't
|
||||||
# show by now it never will, so we'll just wait for the
|
# show by now it never will, so we'll just wait for the
|
||||||
# hub to show up.
|
# hub to show up.
|
||||||
assert_screen "anaconda_main_hub", 900;
|
assert_screen ["anaconda_main_hub", "anaconda_webui_installmethod"], 900;
|
||||||
_handle_incomplete_hub;
|
_handle_incomplete_hub;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@ sub run {
|
|||||||
# If we want to test graphics during installation, we need to
|
# If we want to test graphics during installation, we need to
|
||||||
# call the test suite with an "IDENTIFICATION=true" variable.
|
# call the test suite with an "IDENTIFICATION=true" variable.
|
||||||
my $identification = get_var('IDENTIFICATION');
|
my $identification = get_var('IDENTIFICATION');
|
||||||
assert_screen ["anaconda_main_hub", "anaconda_webui_welcome"];
|
assert_screen ["anaconda_main_hub", "anaconda_webui_installmethod"];
|
||||||
if (match_has_tag "anaconda_webui_welcome") {
|
if (match_has_tag "anaconda_webui_installmethod") {
|
||||||
# long term we'll want two paths through select_disks or
|
# long term we'll want two paths through select_disks or
|
||||||
# a webui_select_disks, but for now, just throw it in here
|
# a webui_select_disks, but for now, just throw it in here
|
||||||
# as it's simple on this single path
|
# as it's simple on this single path
|
||||||
|
Loading…
Reference in New Issue
Block a user