Skip to content

test(mosaic): remove tests that measure StyleX styles and layout - #11021

Merged
alexcarpenter merged 1 commit into
mainfrom
carp/fix-segmented-control-flake
Nov 26, 2026
Merged

alexcarpenter merged 1 commit into
mainfrom
carp/fix-segmented-control-flake

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Description

Removes Mosaic tests that assert StyleX styles or layout (computed styles, getBoundingClientRect sizes). In the browser and feature test projects, StyleX dev CSS reaches the page through an async refetch the tests don't wait for, so these assertions depend on timing.

  • SegmentedControl.Root width > fills a flex column with fullWidth and splits it evenly failed 39 times in CI between Nov 20 and Nov 24, always with expected 57.4375 to be close to 137.921875. Its flex-grow rule arrived after the test measured.
  • Deleted the browser/feature test files that only checked styling: segmented-control, card, button, entity, media-preferences, provider-button, switcher-avatar, and table.
  • Dropped the column-width comparisons from the API keys, members, requests, and invitations loading tests. Their loading and status assertions stay.
  • Kept the tests where layout comes from JS: Select positioning, the sheet keyboard handling (WebKit), message transitions, and the web3 wallet races.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other: test cleanup

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 26, 2026 12:36am UTC
mosaic-docs Ready Ready Preview Nov 26, 2026 12:36am UTC
swingset Ready Ready Preview Nov 26, 2026 12:36am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 214d3c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@11021

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@11021

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@11021

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@11021

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@11021

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@11021

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@11021

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@11021

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@11021

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@11021

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@11021

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@11021

@clerk/express

npm i https://pkg.pr.new/@clerk/express@11021

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@11021

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@11021

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@11021

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@11021

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@11021

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@11021

@clerk/react

npm i https://pkg.pr.new/@clerk/react@11021

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@11021

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@11021

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@11021

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@11021

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@11021

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@11021

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@11021

commit: 214d3c1

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change removes Mosaic browser tests for component styling and layout, plus selected table column-width assertions from feature tests. Other loading and loaded-state checks remain in the affected feature tests. The change also adds an empty changeset file. No production-code changes are described.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: kylemac, austincalvelage

Merge Risk: Minimal · up to 214d3

This change removes flaky styling and layout tests and does not change product behavior. It no longer checks some visual regressions in tests, but it carries no concrete merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: removing Mosaic tests that assert StyleX styles and layout. The changeset deletes styling-only browser and feature test files and drops column-width assertions, which …
Description check Passed The description states that the PR removes Mosaic tests asserting StyleX styles or layout, explains the timing cause, and lists the deleted files and the retained tests. It matches the changeset close…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: removing Mosaic tests that assert StyleX styles and layout. The changeset deletes styling-only browser and feature test files and drops column-width assertions, which matches the title's scope. The title is specific and uses the correct conventional format.

Full details: Description check

Explanation

The description states that the PR removes Mosaic tests asserting StyleX styles or layout, explains the timing cause, and lists the deleted files and the retained tests. It matches the changeset closely.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ada1d27 and 214d3c1.

Files selected for processing: 13

  • .changeset/remove-mosaic-style-tests.md
  • packages/mosaic/src/components/__tests__/media-preferences.browser.test.tsx
  • packages/mosaic/src/components/button/__tests__/button.browser.test.tsx
  • packages/mosaic/src/components/card/card.browser.test.tsx
  • packages/mosaic/src/components/entity/entity.browser.test.tsx
  • packages/mosaic/src/components/provider-button/__tests__/provider-button.browser.test.tsx
  • packages/mosaic/src/components/segmented-control/segmented-control.browser.test.tsx
  • packages/mosaic/src/components/table/table.feature.test.tsx
  • packages/mosaic/src/features/api-keys/__tests__/api-keys-table.feature.test.tsx
  • packages/mosaic/src/features/organization-profile/organization-profile-members-panel/__tests__/organization-profile-invitations.feature.test.tsx
  • packages/mosaic/src/features/organization-profile/organization-profile-members-panel/__tests__/organization-profile-members-panel.feature.test.tsx
  • packages/mosaic/src/features/organization-profile/organization-profile-members-panel/__tests__/organization-profile-requests.feature.test.tsx
  • packages/mosaic/src/features/switcher/__tests__/switcher-avatar.feature.test.tsx
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Files with no reviewable changes: 12

  • packages/mosaic/src/components/tests/media-preferences.browser.test.tsx
  • packages/mosaic/src/components/button/tests/button.browser.test.tsx
  • packages/mosaic/src/components/card/card.browser.test.tsx
  • packages/mosaic/src/components/entity/entity.browser.test.tsx
  • packages/mosaic/src/components/provider-button/tests/provider-button.browser.test.tsx
  • packages/mosaic/src/components/segmented-control/segmented-control.browser.test.tsx
  • packages/mosaic/src/components/table/table.feature.test.tsx
  • packages/mosaic/src/features/api-keys/tests/api-keys-table.feature.test.tsx
  • packages/mosaic/src/features/organization-profile/organization-profile-members-panel/tests/organization-profile-invitations.feature.test.tsx
  • packages/mosaic/src/features/organization-profile/organization-profile-members-panel/tests/organization-profile-members-panel.feature.test.tsx
  • packages/mosaic/src/features/organization-profile/organization-profile-members-panel/tests/organization-profile-requests.feature.test.tsx
  • packages/mosaic/src/features/switcher/tests/switcher-avatar.feature.test.tsx

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

@alexcarpenter
alexcarpenter merged commit 14dbba2 into main Nov 26, 2026
59 checks passed
@alexcarpenter
alexcarpenter deleted the carp/fix-segmented-control-flake branch November 26, 2026 02:46

This branch was successfully deployed

2 active deployments
Preview – swingset — 214d3c13 Deployed Nov 26, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 214d3c13 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants