Autopilot swipe_into_view method can open copy/paste dialog

Bug #1343916 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Calendar App
Fix Released
Undecided
Nicholas Skaggs
Ubuntu UI Toolkit
Invalid
Undecided
Unassigned

Bug Description

Calendar app tests are failing on the dashboard due to this error. These tests are failing both for the same reason:

Traceback (most recent call last):
  File "/home/phablet/autopilot/calendar_app/tests/test_custom_proxy_objects.py", line 27, in test_fill_form
    new_event_page._fill_form(test_event)
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/home/phablet/autopilot/calendar_app/emulators.py", line 418, in _fill_form
    self._fill_description(event_information.description)
  File "/home/phablet/autopilot/calendar_app/emulators.py", line 440, in _fill_description
    self._ensure_visible_and_write(description_text_area, value)
  File "/home/phablet/autopilot/calendar_app/emulators.py", line 436, in _ensure_visible_and_write
    text_field.write(value)
  File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 42, in write
    self.focus.wait_for(True)
  File "/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 181, in wait_for
    failure_msg))
AssertionError: After 10.0 seconds test on TextArea.focus failed: True != dbus.Boolean(False, variant_level=1)

By observing the test running, this seems to be because Autopilot is clicking on the wrong screen co-ordinates, and instead of focusing on the Description field, it's selecting some of the text from the Name field.

Selecting this text causes the copy/paste dialog to appear which eats further input.

Related branches

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote : Re: [Bug 1343916] [NEW] test_add_new_event_with_default_values & test_fill_form fail since mako #137
Download full text (3.4 KiB)

E

Sent from my BlackBerry 10 smartphone.
  Original Message
From: Brendan Donegan
Sent: Friday, July 18, 2014 6:30 PM
To: <email address hidden>
Reply To: Bug 1343916
Subject: [Bug 1343916] [NEW] test_add_new_event_with_default_values & test_fill_form fail since mako #137

Public bug reported:

These tests are failing both for the same reason:

Traceback (most recent call last):
File "/home/phablet/autopilot/calendar_app/tests/test_custom_proxy_objects.py", line 27, in test_fill_form
new_event_page._fill_form(test_event)
File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
return f(instance, *args, **kwargs)
File "/home/phablet/autopilot/calendar_app/emulators.py", line 418, in _fill_form
self._fill_description(event_information.description)
File "/home/phablet/autopilot/calendar_app/emulators.py", line 440, in _fill_description
self._ensure_visible_and_write(description_text_area, value)
File "/home/phablet/autopilot/calendar_app/emulators.py", line 436, in _ensure_visible_and_write
text_field.write(value)
File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 42, in write
self.focus.wait_for(True)
File "/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 181, in wait_for
failure_msg))
AssertionError: After 10.0 seconds test on TextArea.focus failed: True != dbus.Boolean(False, variant_level=1)

By observing the test running, this seems to be because Autopilot is
clicking on the wrong screen co-ordinates, and instead of focusing on
the Description field, it's selecting some of the text from the Name
field.

** Affects: ubuntu-calendar-app
Importance: Undecided
Status: New

** Tags: qa-broken-test qa-daily-testing qa-landing-email

--
You received this bug notification because you are subscribed to Ubuntu
Calendar App.
https://bugs.launchpad.net/bugs/1343916

Title:
test_add_new_event_with_default_values & test_fill_form fail since
mako #137

Status in Calendar application for Ubuntu devices:
New

Bug description:
These tests are failing both for the same reason:

Traceback (most recent call last):
File "/home/phablet/autopilot/calendar_app/tests/test_custom_proxy_objects.py", line 27, in test_fill_form
new_event_page._fill_form(test_event)
File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
return f(instance, *args, **kwargs)
File "/home/phablet/autopilot/calendar_app/emulators.py", line 418, in _fill_form
self._fill_description(event_information.description)
File "/home/phablet/autopilot/calendar_app/emulators.py", line 440, in _fill_description
self._ensure_visible_and_write(description_text_area, value)
File "/home/phablet/autopilot/calendar_app/emulators.py", line 436, in _ensure_visible_and_write
text_field.write(value)
File "/home/phablet/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py", line 42, in write
self.focus.wait_for(True)
File "/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 181, in wait_for
failure_msg))
AssertionError: After 10.0 seconds test on TextArea.focus failed: True != dbus.Boolean(False, variant_level=1)

By observing the test running, this seems to be because Autopilot is...

Read more...

tags: added: lt-blocker lt-category-noimpact lt-date-20140718 lt-prio-low
Changed in ubuntu-calendar-app:
status: New → Confirmed
assignee: nobody → Nicholas Skaggs (nskaggs)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote : Re: test_add_new_event_with_default_values & test_fill_form fail since mako #137

Finally duplicated this bug, ugh! Ok, so it seems we're getting the select/copy dialog (which is cool) during our swipe into view. This is interesting to try and fix . . .

summary: - test_add_new_event_with_default_values & test_fill_form fail since mako
- #137
+ Autopilot swipe_into_view method can open copy/paste dialog
tags: added: autopilot-helper
description: updated
description: updated
Changed in ubuntu-calendar-app:
status: Confirmed → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calendar-app at revision None, scheduled for release in ubuntu-calendar-app, milestone alpha-1

Changed in ubuntu-calendar-app:
status: In Progress → Fix Committed
Changed in ubuntu-calendar-app:
status: Fix Committed → Fix Released
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: New → Invalid
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Why is this invalid? It's an issue with the helper atm, even though it's a bit difficult because of edge cases.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.