2019-03-15 15:01:09 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This test checks that Juk starts.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2019-05-07 12:22:22 +00:00
|
|
|
my $mode = get_var('MODE');
|
2019-03-15 15:01:09 +00:00
|
|
|
|
|
|
|
# Start the application
|
2019-05-07 12:22:22 +00:00
|
|
|
if ($mode eq '[ast') {
|
|
|
|
start_with_command 'juk';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
start_with_launcher('juk_launch','menu_applications','menu_multimedia');
|
|
|
|
}
|
2019-03-15 15:01:09 +00:00
|
|
|
# Dismiss a setting window
|
|
|
|
assert_and_click 'juk_cancel';
|
|
|
|
wait_still_screen 2;
|
|
|
|
# Check that it is started
|
|
|
|
assert_screen 'juk_runs';
|
|
|
|
# Close the application
|
|
|
|
send_key 'alt-f4';
|
|
|
|
assert_and_click 'juk_confirm';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {always_rollback => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|