diff --git a/package.json b/package.json index 8fcc803..9da9347 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@octomind/debugtopus", - "version": "3.4.1", + "version": "3.4.2", "description": "Thin wrapper around playwright and the octomind api to run your automagically-maintained tests locally", "main": "./dist/index.js", "packageManager": "pnpm@9.5.0+sha256.dbdf5961c32909fb030595a9daa1dae720162e658609a8f92f2fa99835510ca5", diff --git a/src/octomind-api.ts b/src/octomind-api.ts index f440e4e..cb6948c 100644 --- a/src/octomind-api.ts +++ b/src/octomind-api.ts @@ -81,6 +81,7 @@ export const getTestCases = async ({ try { const axiosResponse = await axios.get<[TestCase]>(endpoint, { headers: { Authorization: `Bearer ${token}` }, + params: { filter: JSON.stringify({ status: "ENABLED" }) }, }); return axiosResponse.data; } catch (error) { diff --git a/tests/octomind-api.spec.ts b/tests/octomind-api.spec.ts index d10607f..65f1609 100644 --- a/tests/octomind-api.spec.ts +++ b/tests/octomind-api.spec.ts @@ -90,6 +90,7 @@ describe("octomind-api", () => { `https://app.octomind.dev/api/bearer/v1/test-targets/${testTargetId}/test-cases`, { headers: { Authorization: `Bearer ${token}` }, + params: { filter: "{\"status\":\"ENABLED\"}" }, }, );