mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-29 22:24:51 +00:00 
			
		
		
		
	workloads/googlephotos: Update to handle new popup
Bump the minor known working version APK and handle a new "missing out" popup.
This commit is contained in:
		| @@ -42,7 +42,7 @@ class Googlephotos(ApkUiautoWorkload): | ||||
|     6. A rotate test is performed on a selected image, rotating anticlockwise 90 degrees, 180 | ||||
|        degrees and 270 degrees. | ||||
|  | ||||
|     Known working APK version: 4.28.0.276318361 | ||||
|     Known working APK version: 4.53.0.316914374 | ||||
|     ''' | ||||
|  | ||||
|     default_test_images = [ | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| @@ -102,6 +102,7 @@ public class UiAutomation extends BaseUiAutomation implements ApplaunchInterface | ||||
|         // Clear the initial run dialogues of the application launch. | ||||
|         dismissWelcomeView(); | ||||
|         closePromotionPopUp(); | ||||
|         closeMissingOutPopUp(); | ||||
|     } | ||||
|  | ||||
|     // Returns the launch command for the application. | ||||
| @@ -176,6 +177,14 @@ public class UiAutomation extends BaseUiAutomation implements ApplaunchInterface | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public void closeMissingOutPopUp() throws Exception { | ||||
|         UiObject missingPopup = | ||||
|                mDevice.findObject(new UiSelector().textContains("Not now")); | ||||
|         if (missingPopup.waitForExists(3000)) { | ||||
|             missingPopup.click(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     // Helper to click on the first image | ||||
|     public void selectFirstImage() throws Exception { | ||||
|         UiObject photo = | ||||
| @@ -304,9 +313,9 @@ public class UiAutomation extends BaseUiAutomation implements ApplaunchInterface | ||||
|         Iterator<Entry<String, PositionPair>> it = testParams.entrySet().iterator(); | ||||
|  | ||||
|         clickUiObject(BY_ID, packageID + "edit", "android.widget.ImageView"); | ||||
|         UiObject enhance =  | ||||
|         UiObject enhance = | ||||
|             mDevice.findObject(new UiSelector().description("Enhance photo")); | ||||
|         if (enhance.exists()){ | ||||
|         if (enhance.waitForExists(timeout)){ | ||||
|             enhance.click(); | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user