os-autoinst-distri-fedora/tests/server_cockpit_basic.pm

36 lines
947 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self=shift;
# run firefox and login to cockpit
start_cockpit(1);
# go to the logs screen
assert_and_click "cockpit_logs";
# the date dropdown changes and messes with the button locations, so wait
wait_still_screen 2;
assert_and_click "cockpit_logs_notices";
wait_still_screen 2;
# assume there's an entry, click it
assert_and_click "cockpit_logs_notices_entry";
# check we get to the appropriate detail screen
assert_screen "cockpit_logs_notices_detail";
# go to the services screen
assert_and_click "cockpit_services";
wait_still_screen 2;
# assume auditd is there, click it
assert_and_click "cockpit_services_auditd";
# check we get to the appropriate detail screen
assert_screen "cockpit_services_auditd_detail";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: