#148 Reneedle the Gnome Application StartStop tests.
Merged 4 years ago by adamwill. Opened 4 years ago by lruzicka.

file modified
+3
@@ -826,6 +826,9 @@ 

              wait_still_screen 5;

          }

          # Click on the launcher

+         if (!check_screen($launcher)) {

+             send_key_until_needlematch($launcher, 'down', 5, 6);

+         }

          assert_and_click $launcher;

          wait_still_screen 5;

      }

@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_boxes_tutorial"

+   ],

+   "area": [

+     {

+       "xpos": 447,

+       "ypos": 131,

+       "width": 130,

+       "height": 17,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
needles/gnome/apps/apps_menu_abrt-20200316.json needles/gnome/apps/apps_run_ldraw.json
file renamed
+6 -7
@@ -1,16 +1,15 @@ 

  {

    "properties": [],

    "tags": [

-     "apps_run_ldraw",

-     "libreoffice_any"

+     "apps_menu_abrt"

    ],

    "area": [

      {

-       "xpos": 490,

-       "ypos": 33,

-       "width": 122,

-       "height": 25,

+       "xpos": 779,

+       "ypos": 651,

+       "width": 30,

+       "height": 44,

        "type": "match"

      }

    ]

- }

+ } 

\ No newline at end of file

empty or binary file added
needles/gnome/apps/apps_menu_archiver-20200316.json needles/gnome/apps/apps_run_ldraw-20190220.json
file renamed
+15 -16
@@ -1,16 +1,15 @@ 

- {

-   "area": [

-     {

-       "xpos": 490,

-       "height": 25,

-       "width": 122,

-       "type": "match",

-       "ypos": 33

-     }

-   ],

-   "properties": [],

-   "tags": [

-     "apps_run_ldraw",

-     "libreoffice_any"

-   ]

- }

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_archiver"

+   ],

+   "area": [

+     {

+       "xpos": 203,

+       "ypos": 282,

+       "width": 49,

+       "height": 53,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_boxes"

+   ],

+   "area": [

+     {

+       "xpos": 213,

+       "ypos": 165,

+       "width": 51,

+       "height": 52,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_calculator"

+   ],

+   "area": [

+     {

+       "xpos": 390,

+       "ypos": 296,

+       "width": 54,

+       "height": 40,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_calendar"

+   ],

+   "area": [

+     {

+       "xpos": 355,

+       "ypos": 182,

+       "width": 41,

+       "height": 31,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_chars"

+   ],

+   "area": [

+     {

+       "xpos": 578,

+       "ypos": 285,

+       "width": 54,

+       "height": 50,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_cheese"

+   ],

+   "area": [

+     {

+       "xpos": 492,

+       "ypos": 174,

+       "width": 41,

+       "height": 34,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_clocks"

+   ],

+   "area": [

+     {

+       "xpos": 632,

+       "ypos": 177,

+       "width": 36,

+       "height": 33,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_contacts"

+   ],

+   "area": [

+     {

+       "xpos": 767,

+       "ypos": 171,

+       "width": 39,

+       "height": 38,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_disks"

+   ],

+   "area": [

+     {

+       "xpos": 203,

+       "ypos": 475,

+       "width": 50,

+       "height": 47,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_diskusage"

+   ],

+   "area": [

+     {

+       "xpos": 769,

+       "ypos": 288,

+       "width": 45,

+       "height": 42,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_dviewer"

+   ],

+   "area": [

+     {

+       "xpos": 577,

+       "ypos": 476,

+       "width": 47,

+       "height": 52,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_files"

+   ],

+   "area": [

+     {

+       "xpos": 223,

+       "ypos": 306,

+       "width": 31,

+       "height": 43,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
needles/gnome/apps/apps_menu_firefox-20200316.json needles/gnome/apps/apps_menu_ldraw.json
file renamed
+4 -4
@@ -1,14 +1,14 @@ 

  {

    "properties": [],

    "tags": [

-     "apps_menu_ldraw"

+     "apps_menu_firefox"

    ],

    "area": [

      {

-       "xpos": 488,

-       "ypos": 451,

+       "xpos": 351,

+       "ypos": 320,

        "width": 48,

-       "height": 46,

+       "height": 26,

        "type": "match"

      }

    ]

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_fonts"

+   ],

+   "area": [

+     {

+       "xpos": 772,

+       "ypos": 473,

+       "width": 45,

+       "height": 46,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_help"

+   ],

+   "area": [

+     {

+       "xpos": 200,

+       "ypos": 656,

+       "width": 55,

+       "height": 35,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_imageviewer"

+   ],

+   "area": [

+     {

+       "xpos": 386,

+       "ypos": 655,

+       "width": 59,

+       "height": 37,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
needles/gnome/apps/apps_menu_lcalc-20200316.json needles/gnome/apps/apps_run_ldraw-20200117.json
file renamed
+14 -15
@@ -1,16 +1,15 @@ 

- {

-   "area": [

-     {

-       "xpos": 491,

-       "height": 25,

-       "type": "match",

-       "ypos": 33,

-       "width": 119

-     }

-   ],

-   "properties": [],

-   "tags": [

-     "apps_run_ldraw",

-     "libreoffice_any"

-   ]

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_lcalc"

+   ],

+   "area": [

+     {

+       "xpos": 491,

+       "ypos": 323,

+       "width": 39,

+       "height": 35,

+       "type": "match"

+     }

+   ]

  } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_limpress"

+   ],

+   "area": [

+     {

+       "xpos": 629,

+       "ypos": 320,

+       "width": 41,

+       "height": 36,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_logs"

+   ],

+   "area": [

+     {

+       "xpos": 574,

+       "ypos": 656,

+       "width": 60,

+       "height": 28,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_lwriter"

+   ],

+   "area": [

+     {

+       "xpos": 219,

+       "ypos": 462,

+       "width": 40,

+       "height": 31,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_maps"

+   ],

+   "area": [

+     {

+       "xpos": 348,

+       "ypos": 455,

+       "width": 45,

+       "height": 27,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_monitor"

+   ],

+   "area": [

+     {

+       "xpos": 392,

+       "ypos": 580,

+       "width": 44,

+       "height": 38,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_photos"

+   ],

+   "area": [

+     {

+       "xpos": 489,

+       "ypos": 449,

+       "width": 46,

+       "height": 37,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_rhythmbox"

+   ],

+   "area": [

+     {

+       "xpos": 630,

+       "ypos": 443,

+       "width": 39,

+       "height": 37,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_scan"

+   ],

+   "area": [

+     {

+       "xpos": 388,

+       "ypos": 475,

+       "width": 59,

+       "height": 48,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_screenshot"

+   ],

+   "area": [

+     {

+       "xpos": 203,

+       "ypos": 582,

+       "width": 51,

+       "height": 32,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_settings"

+   ],

+   "area": [

+     {

+       "xpos": 756,

+       "ypos": 446,

+       "width": 61,

+       "height": 43,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_software"

+   ],

+   "area": [

+     {

+       "xpos": 218,

+       "ypos": 587,

+       "width": 40,

+       "height": 35,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_terminal"

+   ],

+   "area": [

+     {

+       "xpos": 574,

+       "ypos": 567,

+       "width": 59,

+       "height": 38,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_texteditor"

+   ],

+   "area": [

+     {

+       "xpos": 357,

+       "ypos": 589,

+       "width": 36,

+       "height": 38,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_utilities"

+   ],

+   "area": [

+     {

+       "xpos": 486,

+       "ypos": 584,

+       "width": 51,

+       "height": 40,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_videos"

+   ],

+   "area": [

+     {

+       "xpos": 627,

+       "ypos": 584,

+       "width": 50,

+       "height": 39,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_menu_weather"

+   ],

+   "area": [

+     {

+       "xpos": 765,

+       "ypos": 583,

+       "width": 44,

+       "height": 42,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_run_clocks"

+   ],

+   "area": [

+     {

+       "xpos": 552,

+       "ypos": 40,

+       "width": 72,

+       "height": 23,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_run_terminal"

+   ],

+   "area": [

+     {

+       "xpos": 129,

+       "ypos": 4,

+       "width": 83,

+       "height": 22,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -0,0 +1,15 @@ 

+ {

+   "properties": [],

+   "tags": [

+     "apps_utilities"

+   ],

+   "area": [

+     {

+       "xpos": 463,

+       "ypos": 154,

+       "width": 100,

+       "height": 37,

+       "type": "match"

+     }

+   ]

+ } 

\ No newline at end of file

empty or binary file added
@@ -13,14 +13,18 @@ 

      # handling 'auth required' screen appearing as a soft fail,

      # check that is started

      # https://bugzilla.redhat.com/show_bug.cgi?id=1692972

-     assert_screen ['apps_run_boxes', 'auth_required'];

+     assert_screen ['apps_boxes_tutorial', 'auth_required'];

      if (match_has_tag 'auth_required') {

          record_soft_failure "Firewall authentication screen appeared - RHBZ #1692972";

          my $user_password = get_var("USER_PASSWORD") || "weakpassword";

          type_very_safely $user_password;

          send_key 'ret';

-         assert_screen 'apps_run_boxes';

+         assert_screen 'apps_boxes_tutorial';

      }

+     # Let us get rid of the Tutorial window.

+     send_key 'esc';

+     assert_screen 'apps_run_boxes';

+ 

      # Register application

      register_application("gnome-boxes");

      # Close the application

@@ -1,29 +0,0 @@ 

- use base "installedtest";

- use strict;

- use testapi;

- use utils;

- 

- # This test checks that LibreOffice Draw starts.

- 

- sub run {

-     my $self = shift;

- 

-     # Start the application

-     start_with_launcher('apps_menu_ldraw');

-     # Dismiss 'tip of the day' if necessary

-     lo_dismiss_tip;

-     # Check that is started

-     assert_screen 'apps_run_ldraw';

-     # Register application

-     register_application("libreoffice-draw");

-     # Close the application

-     quit_with_shortcut();

- }

- 

- sub test_flags {

-     return {always_rollback => 1};

- }

- 

- 1;

- 

- # vim: set sw=4 et:

@@ -9,7 +9,7 @@ 

      my $self = shift;

      

      # Start the application

-     start_with_launcher('apps_menu_scan');

+     start_with_launcher('apps_menu_scan', 'apps_menu_utilities');

      # Check that is started

      assert_screen 'apps_run_scan';

      # Register application

New needles created for all menu applications, light tweaks done in tests.

Metadata Update from @lruzicka:
- Request assigned

4 years ago

Metadata Update from @lruzicka:
- Request assignee reset

4 years ago

Metadata Update from @lruzicka:
- Request assigned

4 years ago

Metadata Update from @lruzicka:
- Pull-request tagged with: improvetest

4 years ago

Metadata Update from @lruzicka:
- Pull-request untagged with: improvetest
- Pull-request tagged with: easyfix

4 years ago

Build succeeded.

Pull-Request has been merged by adamwill

4 years ago
Changes Summary 84
+3 -0
file changed
lib/utils.pm
+15
file added
needles/gnome/apps/apps_boxes_tutorial-20200316.json
+0
file added
needles/gnome/apps/apps_boxes_tutorial-20200316.png
+6 -7
file renamed
needles/gnome/apps/apps_run_ldraw.json
needles/gnome/apps/apps_menu_abrt-20200316.json
+0
file added
needles/gnome/apps/apps_menu_abrt-20200316.png
+15 -16
file renamed
needles/gnome/apps/apps_run_ldraw-20190220.json
needles/gnome/apps/apps_menu_archiver-20200316.json
+0
file added
needles/gnome/apps/apps_menu_archiver-20200316.png
+15
file added
needles/gnome/apps/apps_menu_boxes-20200316.json
+0
file added
needles/gnome/apps/apps_menu_boxes-20200316.png
+15
file added
needles/gnome/apps/apps_menu_calculator-20200316.json
+0
file added
needles/gnome/apps/apps_menu_calculator-20200316.png
+15
file added
needles/gnome/apps/apps_menu_calendar-20200316.json
+0
file added
needles/gnome/apps/apps_menu_calendar-20200316.png
+15
file added
needles/gnome/apps/apps_menu_chars-20200316.json
+0
file added
needles/gnome/apps/apps_menu_chars-20200316.png
+15
file added
needles/gnome/apps/apps_menu_cheese-20200316.json
+0
file added
needles/gnome/apps/apps_menu_cheese-20200316.png
+15
file added
needles/gnome/apps/apps_menu_clocks-20200316.json
+0
file added
needles/gnome/apps/apps_menu_clocks-20200316.png
+15
file added
needles/gnome/apps/apps_menu_contacts-20200316.json
+0
file added
needles/gnome/apps/apps_menu_contacts-20200316.png
+15
file added
needles/gnome/apps/apps_menu_disks-20200316.json
+0
file added
needles/gnome/apps/apps_menu_disks-20200316.png
+15
file added
needles/gnome/apps/apps_menu_diskusage-20200316.json
+0
file added
needles/gnome/apps/apps_menu_diskusage-20200316.png
+15
file added
needles/gnome/apps/apps_menu_dviewer-20200316.json
+0
file added
needles/gnome/apps/apps_menu_dviewer-20200316.png
+15
file added
needles/gnome/apps/apps_menu_files-20200316.json
+0
file added
needles/gnome/apps/apps_menu_files-20200316.png
+4 -4
file renamed
needles/gnome/apps/apps_menu_ldraw.json
needles/gnome/apps/apps_menu_firefox-20200316.json
+0
file added
needles/gnome/apps/apps_menu_firefox-20200316.png
+15
file added
needles/gnome/apps/apps_menu_fonts-20200316.json
+0
file added
needles/gnome/apps/apps_menu_fonts-20200316.png
+15
file added
needles/gnome/apps/apps_menu_help-20200316.json
+0
file added
needles/gnome/apps/apps_menu_help-20200316.png
+15
file added
needles/gnome/apps/apps_menu_imageviewer-20200316.json
+0
file added
needles/gnome/apps/apps_menu_imageviewer-20200316.png
+14 -15
file renamed
needles/gnome/apps/apps_run_ldraw-20200117.json
needles/gnome/apps/apps_menu_lcalc-20200316.json
+0
file added
needles/gnome/apps/apps_menu_lcalc-20200316.png
-0
file removed
needles/gnome/apps/apps_menu_ldraw.png
+15
file added
needles/gnome/apps/apps_menu_limpress-20200316.json
+0
file added
needles/gnome/apps/apps_menu_limpress-20200316.png
+15
file added
needles/gnome/apps/apps_menu_logs-20200316.json
+0
file added
needles/gnome/apps/apps_menu_logs-20200316.png
+15
file added
needles/gnome/apps/apps_menu_lwriter-20200316.json
+0
file added
needles/gnome/apps/apps_menu_lwriter-20200316.png
+15
file added
needles/gnome/apps/apps_menu_maps-20200316.json
+0
file added
needles/gnome/apps/apps_menu_maps-20200316.png
+15
file added
needles/gnome/apps/apps_menu_monitor-20200316.json
+0
file added
needles/gnome/apps/apps_menu_monitor-20200316.png
+15
file added
needles/gnome/apps/apps_menu_photos-20200316.json
+0
file added
needles/gnome/apps/apps_menu_photos-20200316.png
+15
file added
needles/gnome/apps/apps_menu_rhythmbox-20200316.json
+0
file added
needles/gnome/apps/apps_menu_rhythmbox-20200316.png
+15
file added
needles/gnome/apps/apps_menu_scan-20200316.json
+0
file added
needles/gnome/apps/apps_menu_scan-20200316.png
+15
file added
needles/gnome/apps/apps_menu_screenshot-20200316.json
+0
file added
needles/gnome/apps/apps_menu_screenshot-20200316.png
+15
file added
needles/gnome/apps/apps_menu_settings-20200316.json
+0
file added
needles/gnome/apps/apps_menu_settings-20200316.png
+15
file added
needles/gnome/apps/apps_menu_software-20200316.json
+0
file added
needles/gnome/apps/apps_menu_software-20200316.png
+15
file added
needles/gnome/apps/apps_menu_terminal-20200316.json
+0
file added
needles/gnome/apps/apps_menu_terminal-20200316.png
+15
file added
needles/gnome/apps/apps_menu_texteditor-20200316.json
+0
file added
needles/gnome/apps/apps_menu_texteditor-20200316.png
+15
file added
needles/gnome/apps/apps_menu_utilities-20200316.json
+0
file added
needles/gnome/apps/apps_menu_utilities-20200316.png
+15
file added
needles/gnome/apps/apps_menu_videos-20200316.json
+0
file added
needles/gnome/apps/apps_menu_videos-20200316.png
+15
file added
needles/gnome/apps/apps_menu_weather-20200316.json
+0
file added
needles/gnome/apps/apps_menu_weather-20200316.png
+15
file added
needles/gnome/apps/apps_run_clocks-20200316.json
+0
file added
needles/gnome/apps/apps_run_clocks-20200316.png
-0
file removed
needles/gnome/apps/apps_run_ldraw-20190220.png
-0
file removed
needles/gnome/apps/apps_run_ldraw-20200117.png
-0
file removed
needles/gnome/apps/apps_run_ldraw.png
+15
file added
needles/gnome/apps/apps_run_terminal-20200316.json
+0
file added
needles/gnome/apps/apps_run_terminal-20200316.png
+15
file added
needles/gnome/apps/apps_utilities.json
+0
file added
needles/gnome/apps/apps_utilities.png
+6 -2
file changed
tests/apps_startstop/gnome/boxes.pm
-29
file removed
tests/apps_startstop/gnome/ldraw.pm
+1 -1
file changed
tests/apps_startstop/gnome/scan.pm