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

Fix the Silverblue failure on new_file test.

This commit is contained in:
Lukas Ruzicka 2022-09-20 16:19:58 +02:00
parent 49dac8d872
commit 9b27b6f368
5 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 23,
"ypos": 121,
"width": 98,
"xpos": 856,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_display_line_numbers"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 478,
"ypos": 35,
"width": 70,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_file_saved"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -23,6 +23,7 @@ sub run {
# Switch on Markdown Highlighting.
assert_and_click("gte_settings_button");
assert_and_click "gte_select_highlighting";
wait_still_screen(2);
type_very_safely "markdown";
send_key "ret";
assert_and_click("gte_window_dismiss");
@ -36,9 +37,17 @@ sub run {
wait_still_screen(3);
type_very_safely "list.md";
send_key("ret");
assert_screen("gte_file_saved");
# Check that the file has been created
$self->root_console(tty => 3);
assert_script_run "ls /home/test/list.md";
# The test started to fail on Silverblue
# because the target directory changed.
if (get_var("SUBVARIANT" eq "Silverblue")) {
assert_script_run("ls /home/test/Documents/list.md");
}
else {
assert_script_run("ls /home/test/list.md");
}
desktop_vt();
}