← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~nskaggs/ubuntu-filemanager-app/fix-ap-item-renames into lp:ubuntu-filemanager-app

 

Nicholas Skaggs has proposed merging lp:~nskaggs/ubuntu-filemanager-app/fix-ap-item-renames into lp:ubuntu-filemanager-app.

Commit message:
Fix autopilot tests in trunk -- UI element types changed slightly.

Requested reviews:
  Jenkins Bot (ubuntu-core-apps-jenkins-bot): continuous-integration
  Ubuntu File Manager Developers (ubuntu-filemanager-dev)

For more details, see:
https://code.launchpad.net/~nskaggs/ubuntu-filemanager-app/fix-ap-item-renames/+merge/282628

Fix autopilot tests in trunk -- UI element types changed slightly.
-- 
Your team Ubuntu File Manager Developers is requested to review the proposed merge of lp:~nskaggs/ubuntu-filemanager-app/fix-ap-item-renames into lp:ubuntu-filemanager-app.
=== modified file 'tests/autopilot/filemanager/__init__.py'
--- tests/autopilot/filemanager/__init__.py	2015-03-12 21:39:41 +0000
+++ tests/autopilot/filemanager/__init__.py	2016-01-14 16:46:35 +0000
@@ -108,7 +108,7 @@
         """Bring the places page to the screen"""
         try:
             action_item = self.wait_select_single(
-                'ShapeItem', objectName='bottomEdgeTip')
+                'UCUbuntuShape', objectName='bottomEdgeTip')
             action_item.visible.wait_for(True)
             action_item.isAnimating.wait_for(False)
             start_x = (action_item.globalRect.x +
@@ -396,7 +396,7 @@
 
     def _split_header_text(self):
         header_text = self.select_single(
-            'Header', objectName='listViewSmallHeader').text
+            'ListItemHeader', objectName='listViewSmallHeader').text
         match = re.match(self.SPLIT_HEADER_REGEX, header_text)
         if match:
             path = match.group(1)
@@ -432,7 +432,7 @@
 
     def _split_header_text(self):
         header_text = self.select_single(
-            'Header', objectName='iconViewHeader').text
+            'ListItemHeader', objectName='iconViewHeader').text
         match = re.match(self.SPLIT_HEADER_REGEX, header_text)
         if match:
             path = match.group(1)