File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -574,17 +574,16 @@ describe('TestingBot API Tests', function() {
574574 } ) ;
575575
576576 describe ( 'Session Management' , function ( ) {
577+ this . timeout ( 10000 ) ;
577578 it ( 'should create a session with custom capabilities' , function ( done ) {
578579 const customCapabilities = {
579- browserName : 'firefox ' ,
580- browserVersion : '120 ' ,
581- platform : 'WIN11 '
580+ browserName : 'chrome ' ,
581+ browserVersion : 'latest ' ,
582+ platform : 'LINUX '
582583 } ;
583584 this . api . createSession ( { capabilities : customCapabilities } , function ( err , response ) {
584- if ( err && err . message && err . message . includes ( 'Unauthorized' ) ) {
585- return done ( ) ;
586- }
587- assert . ok ( response || err , 'Should have response or error' ) ;
585+ assert . strictEqual ( err , null , 'Should not have an error creating session' ) ;
586+ assert . ok ( response , 'Response should exist' ) ;
588587 done ( ) ;
589588 } ) ;
590589 } ) ;
You can’t perform that action at this time.
0 commit comments