This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,11 @@ export class Runner extends EventEmitter {
93
93
unknownFlags = unknownFlags . filter ( ( f ) => extraFlags . indexOf ( f ) === - 1 ) ;
94
94
}
95
95
if ( unknownFlags . length > 0 && ! this . config_ . disableChecks ) {
96
- throw new ConfigError (
97
- logger ,
98
- 'Found extra flags: ' + unknownFlags . join ( ', ' ) +
99
- ', please use --disableChecks flag to disable the Protractor CLI flag checks. ' ) ;
96
+ // TODO: Make this throw a ConfigError in Protractor 6.
97
+ logger . warn (
98
+ 'Ignoring unknown extra flags: ' + unknownFlags . join ( ', ' ) + '. This will be' +
99
+ ' an error in future versions, please use --disableChecks flag to disable the ' +
100
+ ' Protractor CLI flag checks. ' ) ;
100
101
}
101
102
return this . plugins_ . onPrepare ( ) . then ( ( ) => {
102
103
return helper . runFilenameOrFn_ ( this . config_ . configDir , this . preparer_ ) ;
Original file line number Diff line number Diff line change @@ -19,12 +19,6 @@ var checkLogs = function(output, messages) {
19
19
*Below are exit failure tests*
20
20
******************************/
21
21
22
- runProtractor = spawn ( 'node' ,
23
- [ 'bin/protractor' , 'example/conf.js' , '--foobar' , 'foobar' ] ) ;
24
- output = runProtractor . stdout . toString ( ) ;
25
- messages = [ 'Error: Found extra flags: foobar' ] ;
26
- checkLogs ( output , messages ) ;
27
-
28
22
// assert authentication error for sauce labs
29
23
runProtractor = spawn ( 'node' ,
30
24
[ 'bin/protractor' , 'spec/errorTest/sauceLabsAuthentication.js' ] ) ;
You can’t perform that action at this time.
0 commit comments