From 9a2841dd8f8794a784640c03db439b4e9f73cee4 Mon Sep 17 00:00:00 2001 From: alanv Date: Wed, 25 Feb 2026 16:45:53 -0600 Subject: [PATCH] AssayImportRunAction.ispec.ts: Fix verifyPropertiesFilesOnServer --- .../test/integration/AssayImportRunAction.ispec.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/experiment/src/client/test/integration/AssayImportRunAction.ispec.ts b/experiment/src/client/test/integration/AssayImportRunAction.ispec.ts index 6cb47738cd0..f38134375c1 100644 --- a/experiment/src/client/test/integration/AssayImportRunAction.ispec.ts +++ b/experiment/src/client/test/integration/AssayImportRunAction.ispec.ts @@ -112,9 +112,15 @@ async function verifyPropertiesFilesOnServer( requestOptions?: RequestOptions ): Promise { const response = await server.request( - '_webdav', - '%40files/assaydata', - (agent, url) => agent.get(url.replace('.view', '') + '?method=JSON'), + 'fakeController', + 'fakeAction', + (agent, url) => { + // Note: this is a hack to allow us to make requests to the webdav controller. The IntegrationTestServer + // request method uses ActionURL to generate URLS, but webdav URLs are not ActionURLs, so we need to + // override the AgentProvider to generate the proper webdav URL. + url = `/_webdav/${requestOptions.containerPath}/%40files/assaydata?method=JSON`; + return agent.get(url); + }, requestOptions );