99f9394
@@ -0,0 +1,15 @@
+ {
+ "properties": [],
+ "tags": [
+ "deskset_plain_color"
+ ],
+ "area": [
+ "xpos": 432,
+ "ypos": 330,
+ "width": 33,
+ "height": 13,
+ "type": "match"
+ }
+ ]
\ No newline at end of file
+ "deskset_select_black"
+ "xpos": 242,
+ "ypos": 144,
+ "width": 14,
+ "height": 11,
+ "deskset_select_color"
+ "xpos": 437,
+ "ypos": 215,
+ "width": 29,
+ "height": 18,
+ "deskset_select_type"
+ "xpos": 433,
+ "ypos": 175,
+ "width": 45,
+ "height": 17,
+ "xpos": 618,
+ "ypos": 514,
+ "width": 43,
+ "kde_ok"
@@ -0,0 +1,42 @@
+ use base "installedtest";
+ use strict;
+ use testapi;
+ use utils;
+
+ # This sets the KDE desktop background to plain black, to avoid
+ # needle match problems caused by transparency.
+ sub run {
+ my $self = shift;
+ # Run the Desktop settings
+ hold_key 'alt';
+ send_key 'd';
+ send_key 's';
+ release_key 'alt';
+ # Select type of background
+ assert_and_click "deskset_select_type";
+ wait_still_screen 2;
+ # Select plain color type
+ assert_and_click "deskset_plain_color";
+ # Open colors selection
+ assert_and_click "deskset_select_color";
+ # Select black
+ assert_and_click "deskset_select_black";
+ # Confirm
+ assert_and_click "kde_ok";
+ # Close the application
+ sub test_flags {
+ return {fatal => 1, milestone => 1};
+ 1;
+ # vim: set sw=4 et:
This PR sets the background to black and thus makes the KDE start stop tests working again.
I have tested this on staging. It works without problem: https://openqa.stg.fedoraproject.org/tests/514709#
Metadata Update from @lruzicka: - Request assigned
Metadata Update from @lruzicka: - Request assignee reset
Could you give this a better commit summary? Just "add Desktop setting." tells you very little without any other context...
rebased onto 70bf2f54cd8ae291d7ffd64799ce4d59f8f3546f
Sure :rabbit:
rebased onto d9efa823e6b03df0967a57d5266f40d2fd861190
I still didn't like the summary so I rewrote it myself :P I also tweaked the PR to use a keyboard shortcut to bring up the desktop settings instead of using a menu which itself may be subject to transparency issues - this should make it more robust. With those changes, I'm gonna go ahead and merge it. Thanks!
rebased onto 99f9394
Yeah, if I had known how to do multiple shortcuts, I would have done that, too. Thanks. Now I know.
Pull-Request has been merged by adamwill
My usual reference for 'hmm can I do this thing in os-autoinst?' is just to open up testapi.pm and look at the functions it exports!
testapi.pm
I was trying git grep and hoped something would jump at me. Will have to remember the testapi.pm thingie.
git grep
This PR sets the background to black and thus makes the KDE start stop tests working again.