2022-02-10 09:29:17 +00:00
use base "installedtest" ;
use strict ;
use testapi ;
use utils ;
2022-07-28 20:32:57 +00:00
# This script will download the test files, start Nautilus,
2022-02-10 09:29:17 +00:00
# stretch it all over the screen and upload the status to
# set a milestone as a starting point for the other Nautilus tests.
sub run {
my $ self = shift ;
# Switch to console
2022-07-28 20:32:57 +00:00
$ self - > root_console ( tty = > 3 ) ;
2022-02-10 09:29:17 +00:00
# Perform git test
check_and_install_git ( ) ;
# Download the test data
download_testdata ( ) ;
2024-02-19 10:26:39 +00:00
assert_script_run ( "touch /home/test/Documents/.invisible.txt" ) ;
assert_script_run ( "chown test:test /home/test/Documents/.invisible.txt" ) ;
assert_script_run ( "rm -f /home/test/*reference*" ) ;
2022-02-10 09:29:17 +00:00
# Exit the terminal
desktop_vt ;
2023-10-02 14:02:11 +00:00
# Set the update notification timestamp
set_update_notification_timestamp ( ) ;
2022-02-10 09:29:17 +00:00
# Start the application
menu_launch_type ( "nautilus" ) ;
2022-11-29 17:41:47 +00:00
# Check that is started
assert_screen 'apps_run_files' ;
2022-02-10 09:29:17 +00:00
wait_still_screen ( "2" ) ;
2022-07-28 20:32:57 +00:00
2022-02-10 09:29:17 +00:00
# Fullsize the Nautilus window.
wait_screen_change { send_key ( "super-up" ) ; } ;
2022-07-28 20:32:57 +00:00
2022-02-10 09:29:17 +00:00
# Click to change the Directory view to listings.
assert_and_click ( "nautilus_toggle_view" , timeout = > '30' , button = > 'left' , mousehide = > '1' ) ;
# This will test the common directory structure. The structure is always created when a user is created, so let's see if it has been created correctly.
assert_screen ( "nautilus_available_directories" ) ;
}
sub test_flags {
return { fatal = > 1 , milestone = > 1 } ;
}
1 ;
# vim: set sw=4 et: