quickemu-project / quicktest

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

bug: Fails to detect the text on Xubuntu live image desktop icons #29

Open ali1234 opened 4 months ago

ali1234 commented 4 months ago

Testcase:

# Boot to live environment - Xubuntu 24.04
# Based on Ubuntu 24.04 test case

function test_setup() {
    # No setup required
    echo "No setup required"
}

function test_post_boot_grub() {
    # Wait a while for EUFI or BIOS to pass
    # We could skip having this function, but it's nice to have
    # So we have the opportunity to click that stupid dialog
    qt_wait_for_seconds 10
    # Wait for the grub menu
    qt_wait_for_text "$FUNCNAME" "$text_console_gnu_grub" 10 5
    qt_screenshot_ppm "$FUNCNAME"
    # Press enter on the 'Try or install Ubuntu' GRUB option
    qt_send_key "return"
}

function test_installer_initial_load() {
    # Wait for the installer to load
    qt_wait_for_text "$FUNCNAME" "Install Xubuntu" 10 10
}

function test_power_off_vm() {
    # send power off
    qt_poweroff_vm
}

function test_boot_to_live_environment() {
    test_setup
    test_post_boot_grub
    test_installer_initial_load
    test_power_off_vm
}

Screenshot output:

image

Text detected in this screenshot:

we A XO @) 12Mmayo201

a