Skip to content

Commit df79dc4

Browse files
romanlutzCopilot
authored andcommitted
TEST: Mock auth config in scenario E2E
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 71243cb commit df79dc4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

frontend/e2e/scenario-history.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ async function mockScenarioAPIs(page: Page): Promise<ScenarioMocks> {
210210
let launchRequest: Record<string, unknown> | undefined;
211211
const estimateRequests: Record<string, unknown>[] = [];
212212

213+
await page.route(/\/api\/auth\/config(?:\?|$)/, async (route) => {
214+
await route.fulfill({
215+
status: 200,
216+
contentType: "application/json",
217+
body: JSON.stringify({ clientId: "", tenantId: "", allowedGroupIds: "" }),
218+
});
219+
});
220+
213221
await page.route(/\/api\/version(?:\?|$)/, async (route) => {
214222
await route.fulfill({
215223
status: 200,

0 commit comments

Comments
 (0)