| 
				
			 | 
			
			
				@@ -0,0 +1,34 @@ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1
			 | 
			
			
				+const Utils = require('./Utils'); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				2
			 | 
			
			
				+const Android = require('./AndroidUtils'); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				4
			 | 
			
			
				+const { elementByLabel } = Utils; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				5
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6
			 | 
			
			
				+xdescribe(':android: Android phone locked tests', () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				7
			 | 
			
			
				+  beforeEach(async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+    await device.relaunchApp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				10
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				+  test('launch from locked screen', async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				+    await device.terminateApp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+    await Android.pressLockButton(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				14
			 | 
			
			
				+    await Android.pressLockButton(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+    await device.launchApp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				+    await Android.swipeUp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				+    // The device should be locked using PIN 1234 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+    await Android.enterText('1234'); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				19
			 | 
			
			
				+    await Android.pressEnter(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				20
			 | 
			
			
				+    await expect(elementByLabel('React Native Navigation!')).toBeVisible(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				+  test('launch app from unlocked screen', async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				+    await device.terminateApp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				+    await Android.pressLockButton(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				26
			 | 
			
			
				+    await Android.pressLockButton(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				27
			 | 
			
			
				+    await Android.swipeUp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				28
			 | 
			
			
				+    // The device should be locked using PIN 1234 
			 | 
		
	
		
			
			| 
				
			 | 
			
				29
			 | 
			
			
				+    await Android.enterText('1234'); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				30
			 | 
			
			
				+    await Android.pressEnter(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				31
			 | 
			
			
				+    await device.launchApp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				32
			 | 
			
			
				+    await expect(elementByLabel('React Native Navigation!')).toBeVisible(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				34
			 | 
			
			
				+}); 
			 |