Skip to content

Dogtail's showingOnly option is not working sometimes

Why did we have to do this:

commit 01f06c13879f905653adb4f0aef6b677b24c2383
Author: anonym <anonym@riseup.net>
Date:   Wed Jan 25 16:20:22 2017 +0100

    Enforce `showingOnly` when Dogtailing the GNOME Shell menu.

    We set it by default, but it doesn't seem to take effect. This could
    be due to a bug in our Dogtail patch which added that feature.

diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index a5af7b123b..81503a2137 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -716,7 +716,7 @@ end
 Given /^I start "([^"]+)" via the GNOME "([^"]+)" applications menu$/ do |app_name, submenu|
   app = Dogtail::Application.new('gnome-shell')
   for element in ['Applications', submenu, app_name] do
-    app.child(element, roleName: 'label').click
+    app.child(element, roleName: 'label', showingOnly: true).click
   end
 end

Related issues

Original created by @anonym on 12191 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information