Skip to content

Commit 631aa7c

Browse files
rgarciacursoragent
andcommitted
fix: skip tests that require mock server
These tests were missing the test.skip annotation that all other mock-server-dependent tests have, causing CI failures. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ddfcd78 commit 631aa7c

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

tests/api-resources/browsers/computer.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ describe('resource computer', () => {
7070
});
7171
});
7272

73-
test('captureScreenshot: request options and params are passed correctly', async () => {
73+
// Mock server tests are disabled
74+
test.skip('captureScreenshot: request options and params are passed correctly', async () => {
7475
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
7576
await expect(
7677
client.browsers.computer.captureScreenshot(

tests/api-resources/browsers/fs/fs.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ describe('resource fs', () => {
5959
const response = await client.browsers.fs.deleteFile('id', { path: '/J!' });
6060
});
6161

62-
test('downloadDirZip: required and optional params', async () => {
62+
// Mock server tests are disabled
63+
test.skip('downloadDirZip: required and optional params', async () => {
6364
const response = await client.browsers.fs.downloadDirZip('id', { path: '/J!' });
6465
});
6566

@@ -114,7 +115,8 @@ describe('resource fs', () => {
114115
const response = await client.browsers.fs.move('id', { dest_path: '/J!', src_path: '/J!' });
115116
});
116117

117-
test('readFile: required and optional params', async () => {
118+
// Mock server tests are disabled
119+
test.skip('readFile: required and optional params', async () => {
118120
const response = await client.browsers.fs.readFile('id', { path: '/J!' });
119121
});
120122

tests/api-resources/browsers/replays.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ describe('resource replays', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
test('download: required and optional params', async () => {
23+
// Mock server tests are disabled
24+
test.skip('download: required and optional params', async () => {
2425
const response = await client.browsers.replays.download('replay_id', { id: 'id' });
2526
});
2627

tests/api-resources/extensions.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ describe('resource extensions', () => {
3232
expect(dataAndResponse.response).toBe(rawResponse);
3333
});
3434

35-
test('downloadFromChromeStore: required and optional params', async () => {
35+
// Mock server tests are disabled
36+
test.skip('downloadFromChromeStore: required and optional params', async () => {
3637
const response = await client.extensions.downloadFromChromeStore({ url: 'url', os: 'win' });
3738
});
3839

0 commit comments

Comments
 (0)