_optionselector.py looks for Label delegates instead of UCLabel

Bug #1552773 reported by Nicholas Skaggs
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

The autopilot helper for optionselector seeks Label delegates, rather than UCLabel delegates.

----------
   def get_selected_text(self):
        """gets the text of the currently selected item"""
        option_selector_delegate = self.select_single(
            'OptionSelectorDelegate', focus='True')
        current_label = option_selector_delegate.select_single(
            'Label', visible='True')
        return current_label.text

    def get_current_label(self):
        """gets the text of the currently selected item"""
        option_selector_delegate = self.select_single(
            'OptionSelectorDelegate', focus='True')
        current_label = option_selector_delegate.select_single(
            'Label', visible='True')
        return current_label
----------

Those select_single calls should use UCLabel.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

To confirm the fix, checkout rev 763 of lp:ubuntu-calendar-app, and run the calendar_app.tests.test_new_event.NewEventTestCase.test_new_event_must_start_with_default_values. It's a short test, and should fail without the change, and work with it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Christian Dywan (kalikiana)
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Fix Committed
assignee: Christian Dywan (kalikiana) → nobody
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.