Skip to content

Commit

Permalink
chore(e2e): Update expect statement for db jwt in ap-flows (#3690)
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef authored Jul 11, 2024
1 parent 15f5980 commit a01392f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .changeset/silly-ties-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ test.describe('Next with ClerkJS V4 <-> Account Portal Core 1 @ap-flows', () =>
await app.teardown();
});

test.skip('sign in', async ({ page, context }) => {
test('sign in', async ({ page, context }) => {
await testSignIn({ app, page, context, fakeUser });
});

test.skip('sign up', async ({ page, context }) => {
test('sign up', async ({ page, context }) => {
await testSignUp({ app, page, context, fakeUser });
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ test.describe('Next with ClerkJS V4 <-> Account Portal Core 2 @ap-flows', () =>
await app.teardown();
});

test.skip('sign in', async ({ page, context }) => {
test('sign in', async ({ page, context }) => {
await testSignIn({ app, page, context, fakeUser });
});

test.skip('sign up', async ({ page, context }) => {
test('sign up', async ({ page, context }) => {
await testSignUp({ app, page, context, fakeUser });
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ test.describe('Next with ClerkJS V5 <-> Account Portal Core 1 @ap-flows', () =>
await app.teardown();
});

test.skip('sign in', async ({ page, context }) => {
test('sign in', async ({ page, context }) => {
await testSignIn({ app, page, context, fakeUser });
});

test.skip('sign up', async ({ page, context }) => {
test('sign up', async ({ page, context }) => {
await testSignUp({ app, page, context, fakeUser });
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ test.describe('Next with ClerkJS V5 <-> Account Portal Core 2 @ap-flows', () =>
await app.teardown();
});

test.skip('sign in', async ({ page, context }) => {
test('sign in', async ({ page, context }) => {
await testSignIn({ app, page, context, fakeUser });
});

test.skip('sign up', async ({ page, context }) => {
test('sign up', async ({ page, context }) => {
await testSignUp({ app, page, context, fakeUser });
});

Expand Down
8 changes: 4 additions & 4 deletions integration/tests/next-account-portal/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export const testSignIn = async ({ app, page, context, fakeUser }: TestParams) =
.then(cookies => cookies.find(c => c.name === CLERK_SESSION_COOKIE_NAME)?.value);

// Check that the new localhost DevBrowser JWT is the same as the one set after signing in the Account Portal
// and not the same as the initial DevBrowser JWT
// and the same as the initial DevBrowser JWT
expect(newLocalhostDbJwt).toEqual(appDbJwtAfterSignIn);
expect(newLocalhostDbJwt).not.toEqual(initialDbJwt);
expect(newLocalhostDbJwt).toEqual(initialDbJwt);

// Check that the __session cookie is set
expect(!!__session).toBeTruthy();
Expand Down Expand Up @@ -130,9 +130,9 @@ export const testSignUp = async ({ app, page, context }: TestParams) => {
.then(cookies => cookies.find(c => c.name === CLERK_SESSION_COOKIE_NAME)?.value);

// Check that the new localhost DevBrowser JWT is the same as the one set after signing in the Account Portal
// and not the same as the initial DevBrowser JWT
// and the same as the initial DevBrowser JWT
expect(newLocalhostDbJwt).toEqual(appDbJwtAfterSignIn);
expect(newLocalhostDbJwt).not.toEqual(initialDbJwt);
expect(newLocalhostDbJwt).toEqual(initialDbJwt);

// Check that the __session cookie is set
expect(!!__session).toBeTruthy();
Expand Down

0 comments on commit a01392f

Please sign in to comment.