Skip to content

Commit d7ff1ba

Browse files
committed
test(web): remove redundant test for new user signup in LoginView
1 parent 10b6375 commit d7ff1ba

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

packages/web/src/views/Login/Login.test.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -103,30 +103,6 @@ describe("LoginView", () => {
103103
});
104104
expect(mockAuthApi.loginOrSignup).toHaveBeenCalledWith("mock-oauth-code");
105105
});
106-
107-
it("should call posthog.identify for new user signup", async () => {
108-
const testEmail = "newuser@example.com";
109-
mockAuthApi.loginOrSignup.mockResolvedValue({
110-
cUserId: "new-user-id",
111-
isNewUser: true,
112-
email: testEmail,
113-
});
114-
115-
render(<LoginView />);
116-
117-
const {
118-
useGoogleLogin,
119-
} = require("@web/components/oauth/google/useGoogleLogin");
120-
const mockUseGoogleLogin = useGoogleLogin as jest.Mock;
121-
const onSuccessCallback = mockUseGoogleLogin.mock.calls[0][0].onSuccess;
122-
123-
await onSuccessCallback("mock-oauth-code");
124-
125-
// Verify PostHog identify was called for new user
126-
expect(mockIdentify).toHaveBeenCalledWith(testEmail, {
127-
email: testEmail,
128-
});
129-
});
130106
});
131107

132108
describe("Authentication Flow", () => {

0 commit comments

Comments
 (0)