1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-12-02 05:45:59 +00:00

papers: go back to page 1 if we open on page 2

Just accepting page 2 isn't enough to fix the test, as lots of
later parts of it expect that we're on page 1. So let's try and
handle that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-10-23 14:17:12 -07:00
parent 6bae9cb19a
commit ad9d3cb031
3 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,6 @@
}
],
"tags": [
"papers_file_opened"
"papers_file_opened_page_2"
]
}

View File

Before

Width:  |  Height:  |  Size: 349 KiB

After

Width:  |  Height:  |  Size: 349 KiB

View File

@ -43,7 +43,11 @@ sub run {
send_key("super-up");
# Check that the file has been successfully opened.
assert_screen("papers_file_opened");
assert_screen(["papers_file_opened", "papers_file_opened_page_2"]);
if (match_has_tag("papers_file_opened_page_2")) {
click_lastmatch;
send_key_until_needlematch("papers_file_opened", "pgup", 5, 2);
}
}
sub test_flags {