← Back to team overview

touch-packages team mailing list archive

[Bug 1289616] Re: SDK AP Emulator function for TextField should wait for object creation

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Confirmed

-- 
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/1289616

Title:
  SDK AP Emulator function for TextField should wait for object creation

Status in Ubuntu UI Toolkit:
  Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

Bug description:
  It seems that the TextField helper emulator function does not wait for
  object creation before proceeding to write text in the textfield. Here
  is an example from the clock app AP code,

  def _set_timer_name(self, name):
          """Set timer preset name

          :param name: timer preset name

          """
          name_label = self.wait_select_single(
              LabelDots, objectName='namePreset')
          name_label.write(name)
          if name_label.text != name:
              raise ClockEmulatorException('Failed to write the timer name.')

  Here balloons and I have noticed that the test fails at this function
  if the following statement is not added,

          name_label.visible.wait_for(True)

  So basically I have to manually ensure that the textfield is visible
  (or loaded) before proceeding to write into the textfield. This is
  something I would expect the SDK emulator to handle.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1289616/+subscriptions