feat: added logic to search test cases by title and description (#337)

This commit is contained in:
Matheus Santana
2025-11-15 06:21:30 -03:00
committed by GitHub
parent 068e077805
commit 7db464e28b
10 changed files with 44 additions and 36 deletions

View File

@@ -29,15 +29,15 @@ async function fetchCase(jwt: string, caseId: number) {
async function fetchCases(
jwt: string,
folderId: number,
title?: string,
search?: string,
priority?: number[],
type?: number[],
tag?: number[]
) {
const queryParams = [`folderId=${folderId}`];
if (title) {
queryParams.push(`title=${title}`);
if (search) {
queryParams.push(`search=${search}`);
}
if (priority && priority.length > 0) {