nixosTests.lomiri-music-app: Fix OCR

- Stopped finding the Tracks option in the pop-up menu. Just click where it should be, look for the new menu title afterwards.
- Stopped finding the small listing of the song title. Move the check to the very end, when the song is already opened in the player interface.
This commit is contained in:
OPNA2608 2025-11-04 14:15:44 +01:00
parent 6f2fb9d483
commit 089ac45d32

View file

@ -148,10 +148,9 @@ in
machine.wait_for_text("Albums") machine.wait_for_text("Albums")
machine.succeed("xdotool mousemove 25 45 click 1") # Open categories machine.succeed("xdotool mousemove 25 45 click 1") # Open categories
machine.sleep(2) machine.sleep(2)
machine.wait_for_text("Tracks")
machine.succeed("xdotool mousemove 25 240 click 1") # Switch to Tracks category machine.succeed("xdotool mousemove 25 240 click 1") # Switch to Tracks category
machine.sleep(2) machine.sleep(2)
machine.wait_for_text("${musicFileName}") # the test file machine.wait_for_text("Tracks") # Written in larger text now, easier for OCR
machine.screenshot("lomiri-music_listing") machine.screenshot("lomiri-music_listing")
# Ensure pause colours isn't present already # Ensure pause colours isn't present already
@ -180,8 +179,9 @@ in
machine.screenshot("lomiri-music_paused") machine.screenshot("lomiri-music_paused")
# Lastly, check if generated cover image got extracted properly # Lastly, check if song details like title & generated cover image got extracted properly
# if not, indicates an issue with mediascanner / lomiri-thumbnailer # if not, indicates an issue with mediascanner / lomiri-thumbnailer
machine.wait_for_text("${musicFileName}")
machine.wait_for_text("${ocrContent}") machine.wait_for_text("${ocrContent}")
machine.succeed("pkill -f lomiri-music-app") machine.succeed("pkill -f lomiri-music-app")