use base 'basetest';
use strict;
use testapi;

sub run {
    my $self = shift;

    # Skip tour first
    assert_and_click('gnome_desktop_tour', timeout => 120, button => 'left');

    # We are still in overview after skipping the tour
    send_key('super');

    # Wait for the installer to autostart
    # When there is a high cpu load on the runner, it can take a while for the VM
    # to spawn the installer.
    assert_and_click('gnome_installer_install', timeout => 20, button => 'left');
    assert_and_click('gnome_installer_disk', button => 'left');
    assert_and_click('gnome_installer_install_button', button => 'left');
    assert_screen('gnome_installer_installing');
    assert_and_click('gnome_installer_installed', timeout => 120, button => 'left');
    eject_cd;
}

sub test_flags {
    return { fatal => 1 };
}

1;
