feat: add support for ignoring HTTPS certificate errors (#93)

* feat: add support for ignoring HTTPS certificate errors

* fix: update warning message for already running daemon to include ignore HTTPS errors option

* docs: add documentation for --ignore-https-errors option in README and SKILL.md

* feat: initialize ignore_https_errors flag in command context

* fix: change launch_cmd to mutable for cdp value handling
This commit is contained in:
Zhiwei Li
2026-01-24 23:54:33 -06:00
committed by GitHub
parent 60534dfd63
commit 53187a603c
12 changed files with 65 additions and 2 deletions
+21
View File
@@ -510,6 +510,27 @@ describe('parseCommand', () => {
const result = parseCommand(cmd({ id: '1', action: 'launch', cdpPort: 'invalid' }));
expect(result.success).toBe(false);
});
it('should parse launch with ignoreHTTPSErrors true', () => {
const result = parseCommand(cmd({ id: '1', action: 'launch', ignoreHTTPSErrors: true }));
expect(result.success).toBe(true);
if (result.success) {
expect(result.command.ignoreHTTPSErrors).toBe(true);
}
});
it('should parse launch with ignoreHTTPSErrors false', () => {
const result = parseCommand(cmd({ id: '1', action: 'launch', ignoreHTTPSErrors: false }));
expect(result.success).toBe(true);
if (result.success) {
expect(result.command.ignoreHTTPSErrors).toBe(false);
}
});
it('should reject launch with non-boolean ignoreHTTPSErrors', () => {
const result = parseCommand(cmd({ id: '1', action: 'launch', ignoreHTTPSErrors: 'true' }));
expect(result.success).toBe(false);
});
});
describe('mouse actions', () => {