mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 14:53:09 +00:00
1378039230
The new layout needs to scroll down to reveal some of the elements. Use send_until_needlematch to navigate in the application and arrive at those switch buttons to enable the requested functionality.
62 lines
1.8 KiB
Perl
62 lines
1.8 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This part tests that we can do line numbering,
|
|
# line navigation, line highlighting and show side and bottom panels.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
|
|
# Switches on line numbering.
|
|
assert_and_click "gte_settings_button";
|
|
wait_still_screen(3);
|
|
assert_and_click "gte_display_line_numbers";
|
|
assert_screen "gte_lines_numbered";
|
|
|
|
# Highlights the current line.
|
|
# Use the menu to switch on highlighting.
|
|
assert_and_click("gnome_burger_menu");
|
|
assert_and_click("gte_preferences_submenu");
|
|
# This fixes a problem where on smaller screens
|
|
# some options are hidden and we need to scroll
|
|
# to see them.
|
|
send_key_until_needlematch("gte_toggle_line_highlight", "tab", 20);
|
|
assert_and_click("gte_toggle_line_highlight");
|
|
# Dismiss the menu
|
|
assert_and_click("gte_preferences_off");
|
|
# Assert that it worked.
|
|
assert_screen "gte_line_highlighted";
|
|
|
|
# Displays the right margin.
|
|
assert_and_click "gte_settings_button";
|
|
assert_and_click "gte_display_margin";
|
|
assert_screen "gte_margin_displayed";
|
|
|
|
# Display the side panel.
|
|
assert_and_click("gnome_burger_menu");
|
|
assert_and_click("gte_preferences_submenu");
|
|
send_key_until_needlematch("gte_toggle_side_panel", "tab", 20);
|
|
assert_and_click("gte_toggle_side_panel");
|
|
assert_and_click("gte_preferences_off");
|
|
assert_screen "gte_side_panel_on";
|
|
|
|
# Display the grid.
|
|
assert_and_click("gnome_burger_menu");
|
|
assert_and_click("gte_preferences_submenu");
|
|
send_key_until_needlematch("gte_toggle_grid", "tab", 20);
|
|
assert_and_click("gte_toggle_grid");
|
|
assert_and_click("gte_preferences_off");
|
|
assert_screen "gte_grid_on";
|
|
}
|
|
|
|
|
|
sub test_flags {
|
|
return {always_rollback => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|