diff --git a/tests/applications/gwenview/basic_view.pm b/tests/applications/gwenview/basic_view.pm index 53bb529f..c073f5af 100644 --- a/tests/applications/gwenview/basic_view.pm +++ b/tests/applications/gwenview/basic_view.pm @@ -9,16 +9,16 @@ sub run { my $self = shift; # Check that the picture name is shown - assert_screen "loupe_picture_name"; + assert_screen "gwen_picture_name"; # Check that the Side panel is visible, try to make it visible if it is not. - if (!check_screen("loupe_side_panel")) { - send_key("f9"); + if (!check_screen("gwen_side_panel")) { + send_key("f4"); } - assert_screen("loupe_side_panel"); + assert_screen("gwen_side_panel"); # Check that info on side panel is correct - assert_screen("loupe_img_info"); + assert_screen("gwen_img_info"); } sub test_flags { diff --git a/tests/applications/gwenview/browse.pm b/tests/applications/gwenview/browse.pm index 7eec97fc..4b9516a1 100644 --- a/tests/applications/gwenview/browse.pm +++ b/tests/applications/gwenview/browse.pm @@ -12,10 +12,14 @@ sub run { wait_still_screen 3; # Go to next picture. send_key("right"); - assert_screen("loupe_image_next", timeout => 90); + assert_screen("gwen_image_next", timeout => 90); # Go to previous picture send_key("left"); - assert_and_click("loupe_image_default", timeout => 90); + assert_and_click("gwen_image_default", timeout => 90); + # Show the browse menu + assert_and_click("gwen_show_browse"); + # Check it + assert_screen("gwen_browse_shown"); } sub test_flags { diff --git a/tests/applications/gwenview/fullscreen.pm b/tests/applications/gwenview/fullscreen.pm index 35b2f39b..0f40731f 100644 --- a/tests/applications/gwenview/fullscreen.pm +++ b/tests/applications/gwenview/fullscreen.pm @@ -9,14 +9,14 @@ sub run { my $self = shift; # Toggle full screen - send_key("f11"); + send_key("ctrl-shift-f"); wait_still_screen 2; - assert_screen("loupe_fullscreen_on"); + assert_screen("gwen_fullscreen_on"); # Return to normal mode - send_key("f11"); + send_key("ctrl-shift-f"); wait_still_screen 2; - assert_screen("loupe_image_default"); + assert_screen("gwen_image_default"); } sub test_flags { diff --git a/tests/applications/gwenview/help.pm b/tests/applications/gwenview/help.pm index 12b43237..e62a3f04 100644 --- a/tests/applications/gwenview/help.pm +++ b/tests/applications/gwenview/help.pm @@ -11,10 +11,7 @@ sub run { # Open the shortcuts send_key("f1"); - assert_screen("loupe_help_shown", timeout => 120); - # Try another screen - assert_and_click("loupe_help_image_view", timeout => 60); - assert_screen("loupe_help_view_shown"); + assert_screen("gwen_help_shown", timeout => 120); } sub test_flags { diff --git a/tests/applications/gwenview/pic_to_wallpaper.pm b/tests/applications/gwenview/pic_to_wallpaper.pm deleted file mode 100644 index 4c28a3df..00000000 --- a/tests/applications/gwenview/pic_to_wallpaper.pm +++ /dev/null @@ -1,33 +0,0 @@ -use base "installedtest"; -use strict; -use testapi; -use utils; - -# This part tests if the application can put an image as a wallpaper. - -sub run { - my $self = shift; - sleep 2; - - # Go to the menu - send_key("f10"); - # Set as background - assert_and_click("loupe_menu_set_wallpaper"); - wait_still_screen(2); - # Confirm - assert_and_click("loupe_set_wallpaper"); - wait_still_screen(2); - # Close the application - send_key("alt-f4"); - # Check that the wallpaper was set - assert_screen("loupe_image_background"); - -} - -sub test_flags { - return {always_rollback => 1}; -} - -1; - -# vim: set sw=4 et: