Commit Graph

13 Commits

Author SHA1 Message Date
Adam Williamson caa4353fe0 maps: add some sleeps to the zoom test
These loops make us click extremely fast. This may cause
unreliable results, I think. At least, the test is failing a
lot lately, with results that look like it's not always getting
the expected four levels of zoom. Let's try a short sleep
between clicks.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-16 17:52:19 -08:00
Adam Williamson 106a63f101 Maps: try and be a bit safer with the export screen
It seems like the export screen takes a while to appear on 40 and
Rawhide ATM, and we might start typing before it's there. Let's
assert it's actually there before we start doing stuff.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-16 17:22:22 -08:00
Adam Williamson f2dcfed498 Also settle during the setup stage for Maps
This has similarly been failing quite a lot lately, let's see if
a sleep helps here.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-01-03 15:31:56 -08:00
Adam Williamson b043e99430 Drop EOG alternate path in Maps export image test
Silverblue now has Loupe, like Workstation, so the paths are the
same.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:24:24 -07:00
Lukas Ruzicka b1799eb084 Use the new subroutine on desktop tests. 2023-10-10 17:43:21 -07:00
Adam Williamson efe4a3da2e Maps: sigh, okay, need another test logic change for Loupe
Loupe's Open dialog defaults to Recent, not Pictures, so when
we're using Loupe we need to click into Pictures to find the
exported image.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-08-23 11:17:06 -07:00
Adam Williamson af8a6635a6 Maps: go back to always typing 'image viewer'
Loupe has replaced EOG on F39 and Rawhide, and it can be found
with "image viewer", so let's just go with that. The rest of the
logic should be OK but we will likely need some new needles,
will do that next.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-08-23 11:03:36 -07:00
Adam Williamson ccda54d0f7 Fix launching eog on Silverblue
We still have to type "image viewer" there, for now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-08-09 18:04:05 -07:00
Lukas Ruzicka 8ac3885897 Make various fixes in Workstation product to make tests pass. 2023-08-08 14:50:03 +02:00
Adam Williamson 96118b4b60 Maps: handle app UI showing briefly before the access prompt
See e.g. https://openqa.fedoraproject.org/tests/1829593
sometimes we see the app UI briefly before the access prompt
appears. Handle that case by waiting a few seconds and doing
the match again.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-17 09:19:35 -07:00
Lukas Ruzicka 0d4f3f4542 Fix a failing needle for Maps. 2023-03-13 13:39:22 +01:00
Lukáš Růžička 179764d49c Fix tests for Maps.
* Scarborough provided quite a messy map that resulted
in frequent needle failure. Changing the location
for something better to make it more reliable.
* The zoom test could have failed with a low resolution
image. Adding some timeout to the needle give more
time to load the proper image.
2022-12-07 11:52:11 +01:00
Lukas Ruzicka d4717ff090 Create test suite for Maps. 2022-11-21 18:17:11 +00:00