Merge lp://qastaging/~rpadovani/webbrowser-app/addressBarFullWidth into lp://qastaging/webbrowser-app

Proposed by Riccardo Padovani
Status: Needs review
Proposed branch: lp://qastaging/~rpadovani/webbrowser-app/addressBarFullWidth
Merge into: lp://qastaging/webbrowser-app
Diff against target: 162 lines (+33/-5)
5 files modified
debian/control (+2/-0)
src/app/webbrowser/AddressBar.qml (+10/-2)
src/app/webbrowser/Chrome.qml (+9/-3)
tests/autopilot/webbrowser_app/tests/test_addressbar_states.py (+10/-0)
tests/autopilot/webbrowser_app/tests/test_suggestions.py (+2/-0)
To merge this branch: bzr merge lp://qastaging/~rpadovani/webbrowser-app/addressBarFullWidth
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Olivier Tilloy Needs Fixing
Review via email: mp+239039@code.qastaging.launchpad.net

Commit message

Set addressbar at full width when is focused, as per design

Description of the change

Set addressbar at full width when is focused, as per design

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

The change looks good, but it breaks a large number of autopilot tests in at least two different ways:

 - Some tests focus the address bar and then try to open the drawer, but the button is hidden. Some of these tests can simply be removed, and some will need to be rewritten to account for the new behaviour.

 - A number of tests focus the address bar and then try to click the clear button, but since the width of the address bar is animated, in the time it takes for the cursor to move to where the clear button was, it has moved away, and the click happens outside the button. This is mostly an issue on desktop, but could potentially affect touch devices as well. We need a way for the autopilot tests to wait until the address bar has finished expanding before clicking the clear button.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Sorry, but I needed 2 months to understand autopilot :P

Jokes aside, I deleted test_cannot_bookmark_empty_page because when you open a new tab the address bar is focused and users cannot unfocus it, so he can't click anymore the bookmark menu.

I also deleted test_suggestions_hidden_while_drawer_open because now user can't open the drawer while the address bar is focused

I fixed test_selecting_tab_focuses_webview adding a click to the middle of the page to unfocus the address bar

I fixed also test_special_characters adding a delay before the clear button is clicked

test_looses_focus_when_reloading it's a special case: I fixed it (so now it clicks on the button), but fails anywhere: this evidence a real problem. Indeed, on top of some pixels at the center of the reload icon, (where the autopilot presses), there is a MouseArea that activates the tooltip for copy/paste. I spend some time on it, but I didn't understand the root cause. I'll do further investigation in next days. Meanwhile, if you want, try to take a look.

I think is a toolkit bug - for sure it's not an autopilot issue, because I'm able to reproduce it, so before merging that branch I have to fix the problem

763. By Riccardo Padovani

Merged from trunk

764. By Riccardo Padovani

fixing autopilot

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
765. By Riccardo Padovani

Hide left action in the address bar when editing

766. By Riccardo Padovani

Fixed webbrowser_app.tests.test_addressbar_states.TestAddressBarStates.test_looses_focus_when_reloading

Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Actually, upstream fixed bug #1384278, so per design we can hide the left action in the edit mode.

So I changed the code to hide left action in edit mode and to change keyboard status.

I also changed webbrowser_app.tests.test_addressbar_states.TestAddressBarStates.test_looses_focus_when_reloading to use "Enter" on keyboard instead of clicking the reload button.

The branch now should be ready to be merged

767. By Riccardo Padovani

Merged from trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

There are several build failures that need fixing:

  tests/autopilot/webbrowser_app/tests/test_addressbar_states.py:51:44: F821 undefined name 'Eventually'
  tests/autopilot/webbrowser_app/tests/test_addressbar_states.py:51:55: F821 undefined name 'Equals'

and

  src/app/webbrowser/AddressBar.qml:20:1: module "Ubuntu.Keyboard" is not installed
     import Ubuntu.Keyboard 0.1

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

28 + visible: addressbar.state != "editing"
76 + visible: addressbar.state != 'editing'
85 + visible: enabled && addressbar.state != 'editing'
110 + visible: addressbar.state != 'editing'

The "editing" state of AddressBar was recently removed. Instead, use addressbar.activeFocus.

review: Needs Fixing
768. By Riccardo Padovani

Fixed autopilot import

769. By Riccardo Padovani

Added qtdeclarative5-ubuntu-keyboard-extensions0.1 to debian/control

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
770. By Riccardo Padovani

merged from upstream

771. By Riccardo Padovani

Sobstituted addressbar.state != 'editing' with addressbar.activeFocus

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

The jenkins node for the i386 build failed, I've restarted a new ci run.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

There is still one comparison of addressbar.state with "editing" in src/app/webbrowser/AddressBar.qml.

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

The change to test_looses_focus_when_reloading makes the test meaningless (or at the very least the name needs to be updated too): the test was about clicking on the reload button, not validating the current URL, which takes a different code path.

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

> So I changed the code to hide left action in edit mode and to change keyboard
> status.

I’m not sure it should always be hidden. At the very least, not on desktop where there is no OSK by default.

Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Okay, so:
- reload icon is hiddend only when virtual keyboard is visibile
- test runs only on desktop

as we discussed Friday

The test fails, but I don't think it's related to this branch, because it fails also on trunk: there is a little square in the middle of the reload icon where, for I don't know which reason, the click opens the copy/paste dialog

772. By Riccardo Padovani

Implemented case for physical keyboard

773. By Riccardo Padovani

fixed test_looses_focus_when_reloading

774. By Riccardo Padovani

merged from upstream

Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Argh, forgot to push, sorry :S

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
775. By Riccardo Padovani

Merged from upstream and fixed conflicts

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
776. By Riccardo Padovani

Merged from trunk

777. By Riccardo Padovani

removed qtdeclarative5-private-dev

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
778. By Riccardo Padovani

Merge from upstream and fix conflicts

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

778. By Riccardo Padovani

Merge from upstream and fix conflicts

777. By Riccardo Padovani

removed qtdeclarative5-private-dev

776. By Riccardo Padovani

Merged from trunk

775. By Riccardo Padovani

Merged from upstream and fixed conflicts

774. By Riccardo Padovani

merged from upstream

773. By Riccardo Padovani

fixed test_looses_focus_when_reloading

772. By Riccardo Padovani

Implemented case for physical keyboard

771. By Riccardo Padovani

Sobstituted addressbar.state != 'editing' with addressbar.activeFocus

770. By Riccardo Padovani

merged from upstream

769. By Riccardo Padovani

Added qtdeclarative5-ubuntu-keyboard-extensions0.1 to debian/control

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: