[auth debugger] Make the quick flow use the same state machine as the step-by-step flow (#426)

* use state machine in quick flow

* clean up test

* rm some comments
This commit is contained in:
Paul Carleton 2025-05-27 11:36:19 +01:00 • committed by GitHub
commit 7b1299c730
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,16 +207,10 @@ describe("AuthDebugger", () => {
"https://example.com",
);
// Then should call auth with the server provider
expect(mockAuth).toHaveBeenCalled();
// Check that updateAuthState was called with the right info message
expect(updateAuthState).toHaveBeenCalledWith(
expect.objectContaining({
statusMessage: {
type: "info",
message: "Starting OAuth authentication process...",
},
oauthStep: "authorization_code",
}),
);
});