1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-12-02 13:56:02 +00:00
os-autoinst-distri-fedora/tests/applications/gnome-text-editor/line_numbering.pm
Adam Williamson f0b9bd3e94 Add a simple perl lint script and fix all the errors it found
This adds a script that checks for common whitespace issues
(per our house style) and can (if run with --write) correct some
of them. It adds a run of the script (without --write) to the
tox config, and includes fixes for all the issues the script
discovered in the existing tests and libs.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-27 11:33:29 -07:00

56 lines
1.5 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");
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");
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");
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: