@@ -15,14 +15,13 @@ import {
1515 makeDeleteRequest ,
1616 checkRecordInStaging ,
1717} from './helpers/api-request-helpers.js' ;
18- import { addCreatedId , shouldAutoCommit , trackBatchVerification , getFirstRecordIdFromDatabase , getAllRecordIdsFromDatabase } from './helpers/shared-state.js' ;
18+ import { addCreatedId , shouldAutoCommit , trackBatchVerification } from './helpers/shared-state.js' ;
1919import {
2020 generateProject ,
2121 generateProjectMinimal ,
2222 generateProjectMaximal ,
2323 generateProjectLongStrings ,
2424 generateProjectForbiddenFields ,
25- getLongString ,
2625 getInvalidPicklistValue ,
2726} from './data/test-data-generators.js' ;
2827
@@ -186,9 +185,8 @@ describe('Project Live API Validation Tests', function () {
186185 // Query for test records by filtering by home org and TEST- prefix
187186 let page = 1 ;
188187 const limit = 100 ;
189- let found = false ;
190188
191- while ( ! found && page <= 10 ) { // Limit to 10 pages to avoid infinite loop
189+ while ( page <= 10 ) { // Limit to 10 pages to avoid infinite loop
192190 const response = await request . get ( `/v2/project?page=${ page } &limit=${ limit } &orgUid=${ homeOrgId } ` ) . expect ( 200 ) ;
193191 const data = Array . isArray ( response . body ) ? response . body : ( response . body ?. data || [ ] ) ;
194192
@@ -199,7 +197,6 @@ describe('Project Live API Validation Tests', function () {
199197
200198 if ( testRecord ) {
201199 id = testRecord . cadTrustProjectId ;
202- found = true ;
203200 break ;
204201 }
205202
@@ -230,7 +227,7 @@ describe('Project Live API Validation Tests', function () {
230227 // Required fields must always be included; optional fields can be null (matching V1 behavior)
231228 const updateData = {
232229 projectRegistryName : record . projectRegistryName ,
233- projectId : `UPDATED-${ Date . now ( ) } ` ,
230+ projectId : `TEST- UPDATED-${ Date . now ( ) } ` ,
234231 projectName : 'Updated Project Name' ,
235232 projectCreditingProgram : record . projectCreditingProgram ?? null ,
236233 projectLink : record . projectLink ?? null ,
0 commit comments