| 
									
										
										
										
											2018-05-29 15:35:48 -07:00
										 |  |  | import {browser, by, element, ExpectedConditions} from 'protractor'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-14 11:14:21 -07:00
										 |  |  | jasmine.DEFAULT_TIMEOUT_INTERVAL = 120000; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-29 15:35:48 -07:00
										 |  |  | describe('angular example application', () => { | 
					
						
							|  |  |  |   it('should display: Hello World!', (done) => { | 
					
						
							|  |  |  |     browser.get(''); | 
					
						
							|  |  |  |     const div = element(by.css('div')); | 
					
						
							|  |  |  |     div.getText().then(t => expect(t).toEqual(`Hello world!`)); | 
					
						
							|  |  |  |     element(by.css('input')).sendKeys('!'); | 
					
						
							|  |  |  |     div.getText().then(t => expect(t).toEqual(`Hello world!!`)); | 
					
						
							|  |  |  |     done(); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }); |