← Back to team overview

touch-packages team mailing list archive

[Bug 1417118] Re: test_looses_focus_when_reloading fails when run on desktop

 

I’m observing something interesting (and really puzzling). If in the
autopilot test I replace this code:

    self.pointing_device.click_object(action_button)

by

    self.pointing_device.move(
        action_button.globalRect.x + action_button.width * 0.5,
        action_button.globalRect.y + action_button.height * 0.5)
    self.pointing_device.click()

The bug still happens.
But if I now replace 0.5 in the calculations above by 0.49999, the test passes.

There is something fishy going on with mouse coordinates.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1417118

Title:
  test_looses_focus_when_reloading fails when run on desktop

Status in Web Browser App:
  Confirmed
Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

Bug description:
  Recently, the otto tests started runnning successfully again for the
  webbrowser-app CI job (they had been broken for a long time).

  Now they all pass but one:

  webbrowser_app.tests.test_addressbar_states.TestAddressBarStates.test_looses_focus_when_reloading

  I’m attaching the test result output as well as a video capture of
  what happens when the test is run.

  It appears that clicking the reload button in the address bar doesn’t
  activate the reload action, but instead shows the contextual menu as
  if the click had gone through to the TextField below.

To manage notifications about this bug go to:
https://bugs.launchpad.net/webbrowser-app/+bug/1417118/+subscriptions