@@ -160,7 +160,7 @@ export interface Config {
160
160
* 'spec/*_spec.js'
161
161
* ]
162
162
*/
163
- specs : Array < string > ;
163
+ specs ? : Array < string > ;
164
164
165
165
/**
166
166
* Patterns to exclude specs.
@@ -284,9 +284,8 @@ export interface Config {
284
284
* `multiCapabilities`.
285
285
*
286
286
* If this returns a promise, it is resolved immediately after
287
- * `beforeLaunch`
288
- * is run, and before any driver is set up. If this is specified, both
289
- * capabilities and multiCapabilities will be ignored.
287
+ * `beforeLaunch` is run, and before any driver is set up. If this is
288
+ * specified, both capabilities and multiCapabilities will be ignored.
290
289
*/
291
290
getMultiCapabilities ?: any ;
292
291
@@ -310,15 +309,14 @@ export interface Config {
310
309
311
310
/**
312
311
* CSS Selector for the element housing the angular app - this defaults to
313
- * body, but is necessary if ng-app is on a descendant of <body>.
312
+ * ' body' , but is necessary if ng-app is on a descendant of <body>.
314
313
*/
315
314
rootElement ?: string ;
316
315
317
316
/**
318
317
* The timeout in milliseconds for each script run on the browser. This
319
318
* should be longer than the maximum time your application needs to
320
- * stabilize
321
- * between tasks.
319
+ * stabilize between tasks.
322
320
*/
323
321
allScriptsTimeout ?: number ;
324
322
@@ -329,8 +327,7 @@ export interface Config {
329
327
330
328
/**
331
329
* A callback function called once configs are read but before any
332
- * environment
333
- * setup. This will only run once, and before onPrepare.
330
+ * environment setup. This will only run once, and before onPrepare.
334
331
*
335
332
* You can specify a file containing code to run by setting beforeLaunch to
336
333
* the filename string.
@@ -350,9 +347,8 @@ export interface Config {
350
347
* the filename string. onPrepare can optionally return a promise, which
351
348
* Protractor will wait for before continuing execution. This can be used if
352
349
* the preparation involves any asynchronous calls, e.g. interacting with
353
- * the
354
- * browser. Otherwise Protractor cannot guarantee order of execution and may
355
- * start the tests before preparation finishes.
350
+ * the browser. Otherwise Protractor cannot guarantee order of execution
351
+ * and may start the tests before preparation finishes.
356
352
*
357
353
* At this point, global variable 'protractor' object will be set up, and
358
354
* globals from the test framework will be available. For example, if you
@@ -373,10 +369,9 @@ export interface Config {
373
369
onPrepare ?: ( ) => { } ;
374
370
375
371
/**
376
- * A callback function called once tests are finished.
377
- * onComplete can optionally return a promise, which Protractor will wait
378
- * for
379
- * before shutting down webdriver.
372
+ * A callback function called once tests are finished. onComplete can
373
+ * optionally return a promise, which Protractor will wait for before
374
+ * shutting down webdriver.
380
375
*
381
376
* At this point, tests will be done but global objects will still be
382
377
* available.
@@ -394,7 +389,7 @@ export interface Config {
394
389
* A callback function called once all tests have finished running and
395
390
* the WebDriver instance has been shut down. It is passed the exit code
396
391
* (0 if the tests passed). afterLaunch must return a promise if you want
397
- * asynchronous code to be executed before the program exits.
392
+ * asynchronous code to be executed before the program exits.
398
393
* This is called only once before the program exits (after onCleanUp).
399
394
*/
400
395
afterLaunch ?: ( exitCode : number ) => { } ;
@@ -432,10 +427,8 @@ export interface Config {
432
427
433
428
/**
434
429
* Protractor will track outstanding $timeouts by default, and report them
435
- * in
436
- * the error message if Protractor fails to synchronize with Angular in
437
- * time.
438
- * In order to do this Protractor needs to decorate $timeout.
430
+ * in the error message if Protractor fails to synchronize with Angular in
431
+ * time. In order to do this Protractor needs to decorate $timeout.
439
432
*
440
433
* CAUTION: If your app decorates $timeout, you must turn on this flag. This
441
434
* is false by default.
@@ -449,6 +442,7 @@ export interface Config {
449
442
450
443
/**
451
444
* Test framework to use. This may be one of: jasmine, mocha or custom.
445
+ * Default value is 'jasmine'
452
446
*
453
447
* When the framework is set to "custom" you'll need to additionally
454
448
* set frameworkPath with the path relative to the config file or absolute:
@@ -463,7 +457,7 @@ export interface Config {
463
457
* Mocha has limited support. You will need to include your
464
458
* own assertion framework (such as Chai) if working with Mocha.
465
459
*/
466
- framework : string ;
460
+ framework ? : string ;
467
461
468
462
/**
469
463
* Options to be passed to jasmine.
0 commit comments