Skip to content

Commit a7c395e

Browse files
authored
chore(e2e): Bring back the skipped session task reset password tests (#7484)
1 parent 5d25027 commit a7c395e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.changeset/swift-dolphins-thank.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
---
4+

integration/presets/envs.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ const withSessionTasks = base
154154
const withSessionTasksResetPassword = base
155155
.clone()
156156
.setId('withSessionTasksResetPassword')
157-
.setEnvVariable('private', 'CLERK_API_URL', 'https://api.clerkstage.dev')
158157
.setEnvVariable('private', 'CLERK_SECRET_KEY', instanceKeys.get('with-session-tasks-reset-password').sk)
159158
.setEnvVariable('public', 'CLERK_PUBLISHABLE_KEY', instanceKeys.get('with-session-tasks-reset-password').pk);
160159

integration/testUtils/usersService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const createUserService = (clerkClient: ClerkClient) => {
213213
} satisfies FakeAPIKey;
214214
},
215215
setPasswordCompromised: async (userId: string) => {
216-
await clerkClient.users.__experimental_passwordCompromised(userId);
216+
await clerkClient.users.__experimental_setPasswordCompromised(userId);
217217
},
218218
};
219219

integration/tests/session-tasks-sign-in-reset-password.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
1313
await app.teardown();
1414
});
1515

16-
test.skip('resolve both reset password and organization selection tasks after sign-in', async ({
17-
page,
18-
context,
19-
}) => {
16+
test('resolve both reset password and organization selection tasks after sign-in', async ({ page, context }) => {
2017
const u = createTestUtils({ app, page, context });
2118

2219
const user = u.services.users.createFakeUser();
@@ -64,7 +61,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withSessionTasksResetPassword
6461
await u.services.organizations.deleteAll();
6562
});
6663

67-
test.skip('sign-in with email and resolve the reset password task', async ({ page, context }) => {
64+
test('sign-in with email and resolve the reset password task', async ({ page, context }) => {
6865
const u = createTestUtils({ app, page, context });
6966
const user = u.services.users.createFakeUser();
7067
const createdUser = await u.services.users.createBapiUser(user);

0 commit comments

Comments
 (0)