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 );