Update gulpfile and project to add a tsconfig to protractor test folders Change all sample e2e-spec.js -> e2e-spec.ts Split typings between e2e-spec & app code Use same config for all e2e tests Only 1/3 e2e specs truly converted. Most don't pass because they fail TS transpile by Protractor due to missing type annotations
		
			
				
	
	
		
			15 lines
		
	
	
		
			496 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			496 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /// <reference path="typings/index.d.ts" />
 | |
| 
 | |
| // Defined in protractor.config.js
 | |
| declare function setProtractorToNg1Mode(): void;
 | |
| declare function sendKeys(element: protractor.ElementFinder, str: string): webdriver.promise.Promise<void>;
 | |
| declare function describeIf(cond: boolean, name: string, func: Function): void;
 | |
| declare function itIf(cond: boolean, name: string, func: Function): void;
 | |
| 
 | |
| declare namespace protractor {
 | |
|   interface IBrowser {
 | |
|     appIsTs: boolean;
 | |
|     appIsJs: boolean;
 | |
|   }
 | |
| }
 |