| 
									
										
										
										
											2016-06-23 09:47:54 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 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
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-13 10:10:02 -07:00
										 |  |  | import {verifyNoBrowserErrors} from 'e2e_util/e2e_util'; | 
					
						
							| 
									
										
										
										
											2016-11-10 18:13:11 -08:00
										 |  |  | import {$, ExpectedConditions, browser, by, element} from 'protractor'; | 
					
						
							| 
									
										
										
										
											2015-07-09 10:25:58 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-23 16:21:18 +02:00
										 |  |  | function waitForElement(selector: string) { | 
					
						
							| 
									
										
										
										
											2015-07-09 10:25:58 -07:00
										 |  |  |   // Waits for the element with id 'abc' to be present on the dom.
 | 
					
						
							| 
									
										
										
										
											2016-11-10 18:13:11 -08:00
										 |  |  |   browser.wait(ExpectedConditions.presenceOf($(selector)), 20000); | 
					
						
							| 
									
										
										
										
											2015-07-09 10:25:58 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-07 16:56:35 -07:00
										 |  |  | describe('routing inbox-app', () => { | 
					
						
							| 
									
										
										
										
											2015-07-09 10:25:58 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   afterEach(verifyNoBrowserErrors); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-07 16:56:35 -07:00
										 |  |  |   describe('index view', () => { | 
					
						
							| 
									
										
										
										
											2016-10-23 16:21:18 +02:00
										 |  |  |     const URL = 'all/playground/src/routing/'; | 
					
						
							| 
									
										
										
										
											2015-07-09 10:25:58 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-07 16:56:35 -07:00
										 |  |  |     it('should list out the current collection of items', () => { | 
					
						
							| 
									
										
										
										
											2015-07-09 10:25:58 -07:00
										 |  |  |       browser.get(URL); | 
					
						
							|  |  |  |       waitForElement('.inbox-item-record'); | 
					
						
							|  |  |  |       expect(element.all(by.css('.inbox-item-record')).count()).toEqual(200); | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }); |