feat: Let InitialInteractionHandler redirect requests

This commit is contained in:
Joachim Van Herwegen
2021-07-09 10:41:52 +02:00
parent 0e67004ef4
commit 60ebf5454a
5 changed files with 65 additions and 65 deletions

View File

@@ -87,7 +87,12 @@ export class IdentityTestState {
expect(nextUrl.startsWith(this.oidcIssuer)).toBeTruthy();
// Need to catch the redirect so we can copy the cookies
const res = await this.fetchIdp(nextUrl);
let res = await this.fetchIdp(nextUrl);
expect(res.status).toBe(302);
nextUrl = res.headers.get('location')!;
// Redirect from main page to specific page (login or confirmation)
res = await this.fetchIdp(nextUrl);
expect(res.status).toBe(302);
nextUrl = res.headers.get('location')!;