Skip to content

Commit 8b2fa0d

Browse files
update tests
1 parent b825724 commit 8b2fa0d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/api_test.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)