mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	workloads/gfxbench: Fix not detecting missing asset popup
Add check for a differently worded popup informing that assets are missing.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -74,12 +74,16 @@ public class UiAutomation extends BaseUiAutomation { | |||||||
|         UiObject sync =  |         UiObject sync =  | ||||||
|                 mDevice.findObject(new UiSelector().text("Data synchronization") |                 mDevice.findObject(new UiSelector().text("Data synchronization") | ||||||
|                     .className("android.widget.TextView")); |                     .className("android.widget.TextView")); | ||||||
|                 if (sync.exists()){ |         if (!sync.exists()){ | ||||||
|                     UiObject data = |             sync = mDevice.findObject(new UiSelector().text("Pushed data not found") | ||||||
|                         mDevice.findObject(new UiSelector().resourceId("android:id/button1") |                     .className("android.widget.TextView")); | ||||||
|                             .className("android.widget.Button")); |         } | ||||||
|                     data.click(); |         if (sync.exists()){ | ||||||
|                 } |             UiObject data = | ||||||
|  |                 mDevice.findObject(new UiSelector().resourceId("android:id/button1") | ||||||
|  |                     .className("android.widget.Button")); | ||||||
|  |             data.click(); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         UiObject home = |         UiObject home = | ||||||
|             mDevice.findObject(new UiSelector().resourceId("net.kishonti.gfxbench.gl.v50000.corporate:id/main_homeBack") |             mDevice.findObject(new UiSelector().resourceId("net.kishonti.gfxbench.gl.v50000.corporate:id/main_homeBack") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user