diff --git a/needles/cockpit/cockpit_logs_apply-20210819.json b/needles/cockpit/cockpit_logs_apply-20210819.json new file mode 100644 index 00000000..f36347a7 --- /dev/null +++ b/needles/cockpit/cockpit_logs_apply-20210819.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 854, + "ypos": 251, + "width": 20, + "height": 23, + "type": "match" + } + ], + "properties": [], + "tags": [ + "cockpit_logs_apply" + ] +} \ No newline at end of file diff --git a/needles/cockpit/cockpit_logs_apply-20210819.png b/needles/cockpit/cockpit_logs_apply-20210819.png new file mode 100644 index 00000000..45396a02 Binary files /dev/null and b/needles/cockpit/cockpit_logs_apply-20210819.png differ diff --git a/tests/server_cockpit_basic.pm b/tests/server_cockpit_basic.pm index 3db6f021..cef7a79b 100644 --- a/tests/server_cockpit_basic.pm +++ b/tests/server_cockpit_basic.pm @@ -21,6 +21,15 @@ sub run { type_string "info\n"; wait_still_screen 5; # now click an entry + unless (check_screen "cockpit_logs_entry") { + # in cockpit 251, just hitting enter doesn't apply the change, + # we have to click a button. FIXME: in future this will be + # fixed and we will be able to remove this workaround: + # https://github.com/cockpit-project/cockpit/issues/16243 + assert_and_click "cockpit_logs_apply"; + record_soft_failure "needed to click to apply filter change - https://github.com/cockpit-project/cockpit/issues/16243"; + wait_still_screen 5; + } assert_and_click "cockpit_logs_entry"; # check we get to the appropriate detail screen assert_screen "cockpit_logs_detail";