Update the Gnome-Text-Editot test.
The editor started to show spell-checking that would require a lot of new needles to be created. Theredore, we set the language to English to stop showing the spelling mistakes in aaa_setup.pm Also, the application started to have problems with getting correct focus, so we want to click into the text before the status gets recorded.
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 8,
|
||||
"width": 174,
|
||||
"height": 107,
|
||||
"ypos": 141,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_code_highlighted"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 47 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 242,
|
||||
"ypos": 483,
|
||||
"width": 168,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_context_language_english"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 138 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 242,
|
||||
"ypos": 645,
|
||||
"width": 75,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_context_languages"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/gnome-text-editor/gte_context_languages.png
Normal file
After Width: | Height: | Size: 102 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 141,
|
||||
"type": "match",
|
||||
"height": 105,
|
||||
"xpos": 9,
|
||||
"width": 188,
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_dark_style_used"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 43 KiB |
15
needles/gnome/apps/gnome-text-editor/gte_line_title.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 51,
|
||||
"ypos": 141,
|
||||
"width": 64,
|
||||
"height": 18,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_line_title"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/gnome-text-editor/gte_line_title.png
Normal file
After Width: | Height: | Size: 44 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 17,
|
||||
"type": "match",
|
||||
"width": 39,
|
||||
"xpos": 186,
|
||||
"ypos": 206
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_line_word"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/gnome-text-editor/gte_line_word-20230629.png
Normal file
After Width: | Height: | Size: 71 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 188,
|
||||
"ypos": 205,
|
||||
"width": 32,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_line_word"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/gnome-text-editor/gte_line_word-20230630.png
Normal file
After Width: | Height: | Size: 80 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 74,
|
||||
"xpos": 652,
|
||||
"width": 53,
|
||||
"type": "match",
|
||||
"height": 84
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_margin_displayed"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 81 KiB |
@ -0,0 +1,19 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 61,
|
||||
"type": "match",
|
||||
"width": 349,
|
||||
"xpos": 471,
|
||||
"height": 24,
|
||||
"click_point": {
|
||||
"xpos": 337,
|
||||
"ypos": 12
|
||||
}
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gte_preferences_off"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 188 KiB |
@ -44,6 +44,12 @@ sub run {
|
||||
|
||||
# Check that the document has been opened
|
||||
assert_screen("gte_text_file_opened");
|
||||
|
||||
# Set the document language to English in order
|
||||
# to have the spelling control correct.
|
||||
assert_and_click("gte_line_word", button => "right");
|
||||
assert_and_click("gte_context_languages");
|
||||
assert_and_click("gte_context_language_english");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
|
@ -12,9 +12,12 @@ sub run {
|
||||
# Search the text for specific string.
|
||||
# At first, Wait 1 second for the test to get ready, as the control character was not properly recognized
|
||||
# when the test started immediately after the rollback.
|
||||
sleep 1;
|
||||
sleep 5;
|
||||
# Click into the application to get focus.
|
||||
assert_and_click("gte_line_word");
|
||||
# Invoke the Find dialogue
|
||||
send_key "ctrl-f";
|
||||
wait_still_screen(2);
|
||||
# Type string
|
||||
type_very_safely "sweetest";
|
||||
# Confirm
|
||||
|
@ -12,6 +12,8 @@ sub run {
|
||||
|
||||
# First we will use key combo to open the new document window.
|
||||
sleep 5;
|
||||
# Click into the text to regain focus.
|
||||
assert_and_click("gte_line_word");
|
||||
send_key("ctrl-t");
|
||||
assert_screen "gte_new_document_opened";
|
||||
|
||||
|
@ -7,7 +7,9 @@ use utils;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
sleep(5);
|
||||
# Click into the window to get focus
|
||||
assert_and_click("gte_line_title");
|
||||
# Open Help.
|
||||
send_key("f1");
|
||||
assert_screen "gte_help_shown";
|
||||
|
@ -9,6 +9,8 @@ sub run {
|
||||
my $self = shift;
|
||||
# wait for snapshot restore to settle
|
||||
sleep 5;
|
||||
# Click into the text to get focus
|
||||
assert_and_click("gte_line_title");
|
||||
|
||||
# Open Shortcuts.
|
||||
send_key("ctrl-?");
|
||||
|