Skip to content

Commit 7de1a49

Browse files
committed
Update user and OAuth test cases to include country_code and risk_scores fields. Improved test coverage for user data structures, ensuring proper handling of new attributes across various scenarios.
1 parent 6db97e7 commit 7de1a49

2 files changed

Lines changed: 1058 additions & 644 deletions

File tree

apps/e2e/tests/backend/endpoints/api/v1/auth/oauth/merge-strategy.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ it("should allow OAuth login with manually created account when sign-ups are dis
171171
"auth_with_email": false,
172172
"client_metadata": null,
173173
"client_read_only_metadata": null,
174+
"country_code": null,
174175
"display_name": "Manual User",
175176
"has_password": false,
176177
"id": "<stripped UUID>",
@@ -189,6 +190,12 @@ it("should allow OAuth login with manually created account when sign-ups are dis
189190
"restricted_by_admin_private_details": null,
190191
"restricted_by_admin_reason": null,
191192
"restricted_reason": null,
193+
"risk_scores": {
194+
"sign_up": {
195+
"bot": 0,
196+
"free_trial_abuse": 0,
197+
},
198+
},
192199
"selected_team": null,
193200
"selected_team_id": null,
194201
"server_metadata": null,
@@ -227,6 +234,7 @@ it("should allow OAuth login with manually created account when sign-ups are dis
227234
"auth_with_email": false,
228235
"client_metadata": null,
229236
"client_read_only_metadata": null,
237+
"country_code": null,
230238
"display_name": "Manual User",
231239
"has_password": false,
232240
"id": "<stripped UUID>",
@@ -251,6 +259,12 @@ it("should allow OAuth login with manually created account when sign-ups are dis
251259
"restricted_by_admin_private_details": null,
252260
"restricted_by_admin_reason": null,
253261
"restricted_reason": null,
262+
"risk_scores": {
263+
"sign_up": {
264+
"bot": 0,
265+
"free_trial_abuse": 0,
266+
},
267+
},
254268
"selected_team": null,
255269
"selected_team_id": null,
256270
"server_metadata": null,

0 commit comments

Comments
 (0)