diff --git a/src/test/e2e/helpers/test-helper.ts b/src/test/e2e/helpers/test-helper.ts index 038ab0ff230e..8295a121e8a0 100644 --- a/src/test/e2e/helpers/test-helper.ts +++ b/src/test/e2e/helpers/test-helper.ts @@ -296,7 +296,7 @@ export async function setupAppWithBaseUrl( return createApp(stores, undefined, undefined, { server: { unleashUrl: 'http://localhost:4242', - basePathUri: '/hosted', + baseUriPath: '/hosted', }, }); } diff --git a/src/test/e2e/routes/routes.test.ts b/src/test/e2e/routes/routes.test.ts index 75bc95ad6a39..e8a5cbf14095 100644 --- a/src/test/e2e/routes/routes.test.ts +++ b/src/test/e2e/routes/routes.test.ts @@ -20,7 +20,7 @@ afterAll(async () => { test('hitting a baseUri path returns HTML document', async () => { expect.assertions(0); await app.request - .get('/hosted') + .get('/hosted/projects') .expect(200) .expect('Content-Type', 'text/html; charset=utf-8'); }); @@ -33,7 +33,7 @@ test('hitting an api path that does not exist returns 404', async () => { test('hitting an /admin/api returns HTML document', async () => { expect.assertions(0); await app.request - .get('/admin/api') + .get('/hosted/admin/api') .expect(200) .expect('Content-Type', 'text/html; charset=utf-8'); });