Merge lp:~canonical-platform-qa/webbrowser-app/fix255631-focus_address_bar into lp:webbrowser-app

Proposed by Leo Arias
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 964
Merged at revision: 977
Proposed branch: lp:~canonical-platform-qa/webbrowser-app/fix255631-focus_address_bar
Merge into: lp:webbrowser-app
Diff against target: 10 lines (+0/-1)
1 file modified
tests/autopilot/webbrowser_app/emulators/browser.py (+0/-1)
To merge this branch: bzr merge lp:~canonical-platform-qa/webbrowser-app/fix255631-focus_address_bar
Reviewer Review Type Date Requested Status
Olivier Tilloy Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+255754@code.launchpad.net

Commit message

In the autopilot tests, removed the extra focus step to write a URL.

Description of the change

The extra focus step was causing the sanity tests to fail sometimes.
>From Richard's analyzis:
in the case of long urls, it was causing the text field to scroll to the end of the url which takes a small amount of time. When the clear button was pressed during this time it would fail to clear the existing url.

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

Not sure how this change would make a difference: TextField.write() has to focus the text field before writing to it, how would it do it without tapping on the field first? (which would trigger the scrolling to the end of the URL)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

> Not sure how this change would make a difference: TextField.write() has to
> focus the text field before writing to it, how would it do it without tapping
> on the field first? (which would trigger the scrolling to the end of the URL)

write does the focus clicking it. The problem on the sanity occurs only if we click the field twice.

Revision history for this message
Olivier Tilloy (osomon) wrote :

> write does the focus clicking it. The problem on the sanity occurs only if we
> click the field twice.

Got it. In that case, approved!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/webbrowser_app/emulators/browser.py'
2--- tests/autopilot/webbrowser_app/emulators/browser.py 2015-04-07 13:05:03 +0000
3+++ tests/autopilot/webbrowser_app/emulators/browser.py 2015-04-09 19:31:56 +0000
4@@ -178,7 +178,6 @@
5
6 @autopilot.logging.log_action(logger.info)
7 def go_to_url(self, url):
8- self.focus()
9 self.write(url)
10 self.text_field.keyboard.press_and_release('Enter')
11

Subscribers

People subscribed via source and target branches

to status/vote changes: