mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
test(ci): keep split browser MCP suites in slow bucket
This commit is contained in:
1 parent
50fa27f0a5
commit
5081231667
2 files changed
+24
-1
No files matched your search
@@ -22,7 +22,12 @@ const slowTests = [
|
|||||||
'tests/integration/cursor-daemon-lifecycle.test.ts',
|
'tests/integration/cursor-daemon-lifecycle.test.ts',
|
||||||
'tests/integration/proxy/daemon-lifecycle.test.ts',
|
'tests/integration/proxy/daemon-lifecycle.test.ts',
|
||||||
'tests/unit/commands/persist-command-handler.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-runtime-integration.test.ts',
|
||||||
'tests/unit/targets/codex-settings-bridge-launch.test.ts',
|
'tests/unit/targets/codex-settings-bridge-launch.test.ts',
|
||||||
'tests/unit/targets/droid-command-routing-integration.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');
|
const bucket = require('../../../scripts/run-test-bucket.js');
|
||||||
|
|
||||||
describe('run-test-bucket', () => {
|
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', () => {
|
test('all declared slow tests still exist on disk', () => {
|
||||||
for (const relativePath of bucket.slowTests) {
|
for (const relativePath of bucket.slowTests) {
|
||||||
const absolutePath = path.resolve(__dirname, '../../../', relativePath);
|
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', () => {
|
test('forces npm tests into the slow bucket', () => {
|
||||||
expect(bucket.shouldForceSlow('tests/npm/cli.test.js')).toBe(true);
|
expect(bucket.shouldForceSlow('tests/npm/cli.test.js')).toBe(true);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user