fix(ci): Job names + test(e2e): add E2E test suite for portal auth regressions #189
@@ -86,6 +86,7 @@ export function CustomerPortal() {
|
|||||||
.then((r) => {
|
.then((r) => {
|
||||||
if (!r.ok) {
|
if (!r.ok) {
|
||||||
setSessionError("Failed to create portal session. Please try again.");
|
setSessionError("Failed to create portal session. Please try again.");
|
||||||
|
setIsInitializing(false);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return r.json() as Promise<ImpersonationSession>;
|
return r.json() as Promise<ImpersonationSession>;
|
||||||
@@ -96,11 +97,12 @@ export function CustomerPortal() {
|
|||||||
setClientName(devUser.name);
|
setClientName(devUser.name);
|
||||||
setSessionError(null);
|
setSessionError(null);
|
||||||
}
|
}
|
||||||
|
setIsInitializing(false);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
setSessionError("Failed to connect. Please check your connection and try again.");
|
setSessionError("Failed to connect. Please check your connection and try again.");
|
||||||
})
|
setIsInitializing(false);
|
||||||
.finally(() => setIsInitializing(false));
|
});
|
||||||
} else {
|
} else {
|
||||||
// No sessionId param and no dev user — init is complete with no session
|
// No sessionId param and no dev user — init is complete with no session
|
||||||
setIsInitializing(false);
|
setIsInitializing(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user