| 
									
										
										
										
											2018-07-15 16:02:16 -07:00
										 |  |  | import { browser, element, by } from 'protractor'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | browser.waitForAngularEnabled(false); | 
					
						
							|  |  |  | describe('Element E2E Tests', function () { | 
					
						
							|  |  |  |   describe('Hello World Elements', () => { | 
					
						
							|  |  |  |     it('should display: Hello world!', function () { | 
					
						
							|  |  |  |       browser.get('hello-world.html'); | 
					
						
							|  |  |  |       const helloWorldEl = element(by.css('hello-world-el')); | 
					
						
							|  |  |  |       expect(helloWorldEl.getText()).toEqual('Hello World!'); | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-15 18:53:18 -07:00
										 |  |  |     it('should display: Hello Foo! via name attribute', function () { | 
					
						
							| 
									
										
										
										
											2018-07-15 16:02:16 -07:00
										 |  |  |       browser.get('hello-world.html'); | 
					
						
							|  |  |  |       const helloWorldEl = element(by.css('hello-world-el')); | 
					
						
							|  |  |  |       const input = element(by.css('input[type=text]')); | 
					
						
							|  |  |  |       input.sendKeys('F', 'o', 'o'); | 
					
						
							|  |  |  |       expect(helloWorldEl.getText()).toEqual('Hello Foo!'); | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }); |