mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-29 09:03:08 +00:00
Simplify Krusader app test
We don't need a separate 'welcome' needle because it just matches on an OK button anyway. So turn that needle into an OK needle (we don't have any existing 'blue OK button' needle) and simplify the logic to a single loop for kde_ok and krusader_settings_close. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
401ebecc10
commit
40974c2f94
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"properties": [],
|
"properties": [],
|
||||||
"tags": [
|
"tags": [
|
||||||
"krusader_welcome"
|
"kde_ok"
|
||||||
],
|
],
|
||||||
"area": [
|
"area": [
|
||||||
{
|
{
|
Before Width: | Height: | Size: 510 KiB After Width: | Height: | Size: 510 KiB |
@ -10,19 +10,12 @@ sub run {
|
|||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
menu_launch_type "krusader";
|
menu_launch_type "krusader";
|
||||||
# Deal with the welcome screens
|
# Deal with the welcome screens, which all have an OK button
|
||||||
assert_screen ["krusader_welcome", "krusader_settings_close"];
|
assert_screen ["kde_ok", "krusader_settings_close"];
|
||||||
while (match_has_tag "krusader_welcome") {
|
|
||||||
assert_and_click "krusader_welcome";
|
|
||||||
assert_screen ["krusader_welcome", "krusader_settings_close"];
|
|
||||||
}
|
|
||||||
# Settings close
|
|
||||||
assert_screen ["krusader_settings_close", "kde_ok"];
|
|
||||||
while (match_has_tag "kde_ok") {
|
while (match_has_tag "kde_ok") {
|
||||||
assert_and_click "kde_ok";
|
assert_and_click "kde_ok";
|
||||||
assert_screen ["krusader_settings_close", "kde_ok"]
|
assert_screen ["kde_ok", "krusader_settings_close"];
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_and_click "krusader_settings_close";
|
assert_and_click "krusader_settings_close";
|
||||||
|
|
||||||
wait_still_screen 2;
|
wait_still_screen 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user