Skip to content

Commit b3415aa

Browse files
Merge branch 'main' into alexcarpenter/user-3837-form-errors-not-being-announced-by-screen-readers
2 parents d770878 + f97679a commit b3415aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+300
-50
lines changed

.changeset/brave-apples-sign.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/tall-melons-switch.md

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

.changeset/tricky-badgers-post.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

integration/tests/last-authentication-strategy.test.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,28 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })(
7474
await expect(socialButtonContainers.first().locator('.cl-button')).toHaveCount(3);
7575
});
7676

77+
test('should show "Last used" badge when lastAuthenticationStrategy is saml_google', async ({ page, context }) => {
78+
const u = createTestUtils({ app, page, context });
79+
await mockLastAuthenticationStrategyResponse(page, 'saml_google');
80+
81+
await u.po.signIn.goTo();
82+
await u.po.signIn.waitForMounted();
83+
84+
// Ensure "Last used" badge is present.
85+
const lastUsedBadge = page.locator('.cl-lastAuthenticationStrategyBadge');
86+
await expect(lastUsedBadge).toBeVisible();
87+
await expect(lastUsedBadge).toHaveCount(1);
88+
89+
const btn = page.getByRole('button', { name: 'Last used Sign in with Google' });
90+
await expect(btn).toBeVisible();
91+
92+
// Ensure the last used social button has been pulled to the first row.
93+
const socialButtonContainers = u.page.locator('.cl-socialButtons');
94+
await expect(socialButtonContainers).toHaveCount(2);
95+
await expect(socialButtonContainers.first().locator('.cl-button__google')).toHaveCount(1);
96+
await expect(socialButtonContainers.last().locator('.cl-button')).toHaveCount(2);
97+
});
98+
7799
test('should show "Last used" badge when lastAuthenticationStrategy is oauth_google', async ({ page, context }) => {
78100
const u = createTestUtils({ app, page, context });
79101
await mockLastAuthenticationStrategyResponse(page, 'oauth_google');

packages/agent-toolkit/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @clerk/agent-toolkit
22

3+
## 0.1.46
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`85b5acc`](https://github.com/clerk/javascript/commit/85b5acc5ba192a8247f072fa93d5bc7d42986293), [`ea65d39`](https://github.com/clerk/javascript/commit/ea65d390cd6d3b0fdd35202492e858f8c8370f73), [`b09b29e`](https://github.com/clerk/javascript/commit/b09b29e82323c8fc508c49ffe10c77a737ef0bec)]:
8+
- @clerk/types@4.97.1
9+
- @clerk/shared@3.31.0
10+
- @clerk/backend@2.19.3
11+
312
## 0.1.45
413

514
### Patch Changes

packages/agent-toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/agent-toolkit",
3-
"version": "0.1.45",
3+
"version": "0.1.46",
44
"description": "Clerk Toolkit for AI Agents",
55
"homepage": "https://clerk.com/",
66
"bugs": {

packages/astro/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @clerk/astro
22

3+
## 2.14.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`85b5acc`](https://github.com/clerk/javascript/commit/85b5acc5ba192a8247f072fa93d5bc7d42986293), [`ea65d39`](https://github.com/clerk/javascript/commit/ea65d390cd6d3b0fdd35202492e858f8c8370f73), [`b09b29e`](https://github.com/clerk/javascript/commit/b09b29e82323c8fc508c49ffe10c77a737ef0bec)]:
8+
- @clerk/types@4.97.1
9+
- @clerk/shared@3.31.0
10+
- @clerk/backend@2.19.3
11+
312
## 2.14.3
413

514
### Patch Changes

packages/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/astro",
3-
"version": "2.14.3",
3+
"version": "2.14.4",
44
"description": "Clerk SDK for Astro",
55
"keywords": [
66
"auth",

packages/backend/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 2.19.3
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`85b5acc`](https://github.com/clerk/javascript/commit/85b5acc5ba192a8247f072fa93d5bc7d42986293), [`ea65d39`](https://github.com/clerk/javascript/commit/ea65d390cd6d3b0fdd35202492e858f8c8370f73), [`b09b29e`](https://github.com/clerk/javascript/commit/b09b29e82323c8fc508c49ffe10c77a737ef0bec)]:
8+
- @clerk/types@4.97.1
9+
- @clerk/shared@3.31.0
10+
311
## 2.19.2
412

513
### Patch Changes

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/backend",
3-
"version": "2.19.2",
3+
"version": "2.19.3",
44
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
55
"homepage": "https://clerk.com/",
66
"bugs": {

0 commit comments

Comments
 (0)