test(ci): keep split browser MCP suites in slow bucket

This commit is contained in:
Tam Nhu Tran
2026-04-22 23:20:11 -04:00
parent 50fa27f0a5
commit 5081231667
2 changed files with 24 additions and 1 deletions
+6 -1
View File
@@ -22,7 +22,12 @@ const slowTests = [
'tests/integration/cursor-daemon-lifecycle.test.ts',
'tests/integration/proxy/daemon-lifecycle.test.ts',
'tests/unit/commands/persist-command-handler.test.ts',
'tests/unit/hooks/ccs-browser-mcp-server.test.ts',
'tests/unit/hooks/browser-mcp-advanced-interactions.test.ts',
'tests/unit/hooks/browser-mcp-downloads-and-files.test.ts',
'tests/unit/hooks/browser-mcp-navigation-and-query.test.ts',
'tests/unit/hooks/browser-mcp-orchestration-and-artifacts.test.ts',
'tests/unit/hooks/browser-mcp-recording-and-replay.test.ts',
'tests/unit/hooks/browser-mcp-session-and-intercepts.test.ts',
'tests/unit/targets/codex-runtime-integration.test.ts',
'tests/unit/targets/codex-settings-bridge-launch.test.ts',
'tests/unit/targets/droid-command-routing-integration.test.ts',
@@ -3,6 +3,15 @@ const path = require('node:path');
const bucket = require('../../../scripts/run-test-bucket.js');
describe('run-test-bucket', () => {
const browserMcpSplitSuites = [
'tests/unit/hooks/browser-mcp-advanced-interactions.test.ts',
'tests/unit/hooks/browser-mcp-downloads-and-files.test.ts',
'tests/unit/hooks/browser-mcp-navigation-and-query.test.ts',
'tests/unit/hooks/browser-mcp-orchestration-and-artifacts.test.ts',
'tests/unit/hooks/browser-mcp-recording-and-replay.test.ts',
'tests/unit/hooks/browser-mcp-session-and-intercepts.test.ts',
];
test('all declared slow tests still exist on disk', () => {
for (const relativePath of bucket.slowTests) {
const absolutePath = path.resolve(__dirname, '../../../', relativePath);
@@ -10,6 +19,15 @@ describe('run-test-bucket', () => {
}
});
test('keeps the split Browser MCP suites in the slow bucket', () => {
const slowSet = bucket.getSlowSet();
expect(slowSet.has('tests/unit/hooks/ccs-browser-mcp-server.test.ts')).toBe(false);
for (const relativePath of browserMcpSplitSuites) {
expect(slowSet.has(relativePath)).toBe(true);
}
});
test('forces npm tests into the slow bucket', () => {
expect(bucket.shouldForceSlow('tests/npm/cli.test.js')).toBe(true);
});