| 
				
			 | 
			
			
				@@ -0,0 +1,27 @@ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1
			 | 
			
			
				+const Utils = require('./Utils'); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				2
			 | 
			
			
				+const elementByLabel = Utils.elementByLabel; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				4
			 | 
			
			
				+describe('screen style', () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				5
			 | 
			
			
				+  beforeEach(async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6
			 | 
			
			
				+    await device.relaunchApp(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				7
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+  it('declare a navigationOptions on container component', async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				10
			 | 
			
			
				+    await elementByLabel('Push Options Screen').tap(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				+    await expect(element(by.label('Static Title').and(by.type('UILabel')))).toBeVisible(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				14
			 | 
			
			
				+  it('change title on container component', async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+    await elementByLabel('Push Options Screen').tap(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				+    await expect(element(by.label('Static Title').and(by.type('UILabel')))).toBeVisible(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				+    await elementByLabel('Dynamic Options').tap(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+    await expect(element(by.label('Dynamic Title').and(by.type('UILabel')))).toBeVisible(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				19
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				20
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+  it('set dynamic options with valid options will do something and not crash', async () => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				+    // we have no way of testing individual styles for the screen 
			 | 
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				+    await elementByLabel('Push Options Screen').tap(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				+    await elementByLabel('Dynamic Options').tap(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				+    await expect(element(by.label('Options Screen'))).toBeVisible(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				26
			 | 
			
			
				+  }); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				27
			 | 
			
			
				+}); 
			 |