Bug #11584

"Using a persistent Pidgin configuration" is fragile

Added by intrigeri 2016-07-21 03:35:41 . Updated 2019-08-30 14:19:02 .

Status:
Resolved
Priority:
Normal
Assignee:
hefee
Category:
Test suite
Target version:
Start date:
2016-07-21
Due date:
% Done:

100%

Feature Branch:
https://salsa.debian.org/tails-team/tails/merge_requests/33
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Instant Messaging
Deliverable for:

Description

“Pidgin automatically enables my XMPP account” is run immediately after “I start Pidgin through the GNOME menu”, and it tries to immediately focus the Buddy List window. In other scenarios that step is run after “I close Pidgin’s account manager window” so we have a guarantee that the buddy list is open already, but here it’s not the case, so if focus_window wins the race, it fails:

calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Pidgin Internet Messenger'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.kQjokj8DH6'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.kQjokj8DH6'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.kQjokj8DH6_20160720-193855_debug ...\nClicking on [label | Pidgin Internet Messenger]\nMouse button 1 click at (343,292)\n", ""]
calling as root: rm -f '/tmp/tmp.kQjokj8DH6'
call returned: [0, "", ""]
    When I start Pidgin through the GNOME menu                                                                    # features/step_definitions/pidgin.rb:291
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [1, "", ""]
calling as amnesia: xdotool set_desktop '3'
call returned: [0, "", ""]
calling as amnesia: xdotool set_desktop '0'
call returned: [0, "", ""]
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [1, "", ""]
    Then Pidgin automatically enables my XMPP account                                                             # features/step_definitions/pidgin.rb:76
      Command failed: xdotool search --name 'Buddy List' windowactivate --sync
      error code: 1
      stderr: .
      <false> is not true. (ExecutionFailedInVM)
      ./features/support/helpers/vm_helper.rb:442:in `rescue in execute_successfully'
      ./features/support/helpers/vm_helper.rb:439:in `execute_successfully'
      ./features/support/helpers/vm_helper.rb:484:in `do_focus'
      ./features/support/helpers/vm_helper.rb:499:in `rescue in focus_window'
      ./features/support/helpers/vm_helper.rb:490:in `focus_window'
      ./features/step_definitions/pidgin.rb:77:in `/^Pidgin automatically enables my XMPP account$/'
      features/pidgin.feature:117:in `Then Pidgin automatically enables my XMPP account'

Note that I see the buddy list appear in the last second of the video capture.


Subtasks


History

#1 Updated by intrigeri 2016-07-21 03:37:15

  • Feature Branch set to test/11584-persistent-pidgin-is-fragile

Marked as fragile.

#2 Updated by intrigeri 2016-07-22 05:50:56

  • Feature Branch changed from test/11584-persistent-pidgin-is-fragile to wip/test/11584-persistent-pidgin-is-fragile

#3 Updated by intrigeri 2019-08-30 13:18:19

  • Status changed from Confirmed to In Progress

Applied in changeset commit:tails|7fb3871c051eadd2fd13b08546633b1ba402a7dd.

#4 Updated by intrigeri 2019-08-30 13:31:03

  • Status changed from In Progress to Needs Validation
  • Assignee set to hefee
  • Target version set to Tails_4.0
  • Feature Branch changed from wip/test/11584-persistent-pidgin-is-fragile to https://salsa.debian.org/tails-team/tails/merge_requests/33

#5 Updated by Anonymous 2019-08-30 14:19:02

  • Status changed from Needs Validation to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:tails|a7ca22afb536e8936727d1e681baa6140cc95f37.