| 
									
										
										
										
											2016-12-11 21:42:20 -08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							| 
									
										
										
										
											2020-05-19 12:08:49 -07:00
										 |  |  |  * Copyright Google LLC All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2016-12-11 21:42:20 -08:00
										 |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-13 16:40:21 -07:00
										 |  |  | import {$, browser, by, element, ExpectedConditions} from 'protractor'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-28 21:59:25 +01:00
										 |  |  | import {verifyNoBrowserErrors} from '../../../../test-utils'; | 
					
						
							| 
									
										
										
										
											2016-12-11 21:42:20 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | function waitForElement(selector: string) { | 
					
						
							|  |  |  |   const EC = ExpectedConditions; | 
					
						
							|  |  |  |   // Waits for the element with id 'abc' to be present on the dom.
 | 
					
						
							|  |  |  |   browser.wait(EC.presenceOf($(selector)), 20000); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | describe('ngTemplateOutlet', () => { | 
					
						
							| 
									
										
										
										
											2019-01-28 21:59:25 +01:00
										 |  |  |   const URL = '/ngTemplateOutlet'; | 
					
						
							| 
									
										
										
										
											2016-12-11 21:42:20 -08:00
										 |  |  |   afterEach(verifyNoBrowserErrors); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   describe('ng-template-outlet-example', () => { | 
					
						
							|  |  |  |     it('should render', () => { | 
					
						
							|  |  |  |       browser.get(URL); | 
					
						
							|  |  |  |       waitForElement('ng-template-outlet-example'); | 
					
						
							|  |  |  |       expect(element.all(by.css('ng-template-outlet-example span')).getText()).toEqual([ | 
					
						
							|  |  |  |         'Hello', 'Hello World!', 'Ahoj Svet!' | 
					
						
							|  |  |  |       ]); | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }); |