import { expect, test } from "@playwright/test"; test("orgfront login auto parameter starts OIDC authorization", async ({ page, }) => { let authorizationURL = ""; await page.route( "http://localhost:5000/oidc/.well-known/openid-configuration", async (route) => { await route.fulfill({ json: { issuer: "http://localhost:5000/oidc", authorization_endpoint: "http://localhost:5000/oidc/oauth2/auth", token_endpoint: "http://localhost:5000/oidc/oauth2/token", jwks_uri: "http://localhost:5000/oidc/.well-known/jwks.json", userinfo_endpoint: "http://localhost:5000/oidc/userinfo", }, headers: { "Access-Control-Allow-Origin": "*" }, }); }, ); await page.route( "http://localhost:5000/oidc/oauth2/auth**", async (route) => { authorizationURL = route.request().url(); await route.fulfill({ contentType: "text/html", body: "