The label with the directory name doesn't have an objectName

Bug #1190855 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu File Manager App
Fix Released
Undecided
Michael Spencer

Bug Description

In order to make the ui elements accessible in a nice way for autopilot, they should have the objectName property.

For the test described in bug #1188732, I had to access a label by its index. This is flaky as the order of the elements is likely to change, so it's not a good idea to do it this way:

self.app.select_single('FolderListView').select_many('Label')[0].text

If the label had an objectName, it could be selected like this:

self.app.select_single('Label', objectName='current_directory')

Related branches

Leo Arias (elopio)
Changed in ubuntu-filemanager-app:
status: New → Confirmed
Changed in ubuntu-filemanager-app:
assignee: nobody → Michael Spencer (mdspencer)
status: Confirmed → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-filemanager-app at revision 37, scheduled for release in ubuntu-filemanager-app, milestone alpha-1

Changed in ubuntu-filemanager-app:
status: In Progress → Fix Committed
David Planella (dpm)
Changed in ubuntu-filemanager-app:
status: Fix Committed → Fix Released
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.