quickemu-project / quicktest

Quickly and automatically test systems inside Quickemu virtual machines 🧑‍🔬
MIT License
25 stars 4 forks source link

bug: Kubuntu full test slowed by flashing cursor #19

Closed popey closed 4 months ago

popey commented 4 months ago

Expected behavior

The test should see text on screen and react accordingly and promptly.

Actual behavior

The test sometimes takes two or three tries to find text on screen. It should find it immediately.

The Kubuntu test looks for "Your Full Name" on the 'create user' screen. However, the flashing cursor is in that field when we enter the screen. As such, sometimes when the screenshot is taken, a cursor is on screen, slightly obscuring the "Y" of "Your".

Perhaps we should look for some other text on the screen which is unobscured by a cursor flashing.

Steps to reproduce the behavior

Clone the repo.

Run ./quicktest test_install_calamares_defaults kubuntu daily-live and watch for the create user screen.

It will take 3 attempts to spot the "Your Full Name" text.

Additional context

Quicktest output

[20240516-094747] 🔁 1 / 10 «Your Full Name» 
[20240516-094747] 📷 screenshot_0015_test_calamares_users.ppm
[20240516-094747] 🔍 «Your Full Name» in screenshot «0015»
[20240516-094747] ❌ «Your Full Name»
[20240516-094747] ⏳ 5 s
[20240516-094752] 🔁 2 / 10 «Your Full Name» 
[20240516-094752] 📷 screenshot_0016_test_calamares_users.ppm
[20240516-094752] 🔍 «Your Full Name» in screenshot «0016»
[20240516-094752] ❌ «Your Full Name»
[20240516-094752] ⏳ 5 s
[20240516-094757] 🔁 3 / 10 «Your Full Name» 
[20240516-094757] 📷 screenshot_0017_test_calamares_users.ppm
[20240516-094758] 🔍 «Your Full Name» in screenshot «0017»
[20240516-094758] ✅ «Your Full Name»
[20240516-094758] ⌨️ Typing «Lola Chang» then «TAB»

System Information