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.
This commit is contained in:
Lukas Ruzicka 2023-06-29 13:30:41 +02:00
parent 5e6ed8fd08
commit d749317f29
23 changed files with 157 additions and 2 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 8,
"width": 174,
"height": 107,
"ypos": 141,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_code_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 242,
"ypos": 483,
"width": 168,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_context_language_english"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 242,
"ypos": 645,
"width": 75,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_context_languages"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"ypos": 141,
"type": "match",
"height": 105,
"xpos": 9,
"width": 188,
"match": 90
}
],
"properties": [],
"tags": [
"gte_dark_style_used"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 51,
"ypos": 141,
"width": 64,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_line_title"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 17,
"type": "match",
"width": 39,
"xpos": 186,
"ypos": 206
}
],
"properties": [],
"tags": [
"gte_line_word"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 188,
"ypos": 205,
"width": 32,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gte_line_word"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 74,
"xpos": 652,
"width": 53,
"type": "match",
"height": 84
}
],
"properties": [],
"tags": [
"gte_margin_displayed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -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"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View File

@ -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 {

View File

@ -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

View File

@ -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";

View File

@ -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";

View File

@ -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-?");