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:
parent
6bae9cb19a
commit
ad9d3cb031
@ -15,6 +15,6 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"papers_file_opened"
|
||||
"papers_file_opened_page_2"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 349 KiB After Width: | Height: | Size: 349 KiB |
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user