Skip to content

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Oct 10, 2025

Description

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:

Summary by CodeRabbit

  • Tests

    • Re-enabled previously skipped pricing table tests for broader execution and added waits for the authentication library to load so checkout and subscription flows run reliably in tests.
  • Chores

    • Added a placeholder changeset entry to support release management. No user-facing impact.

@panteliselef panteliselef self-assigned this Oct 10, 2025
Copy link

changeset-bot bot commented Oct 10, 2025

🦋 Changeset detected

Latest commit: 9d062e6

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

Copy link

vercel bot commented Oct 10, 2025

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

Project Deployment Preview Comments Updated (UTC)
clerk-js-sandbox Ready Ready Preview Comment Oct 10, 2025 10:21pm

@panteliselef panteliselef requested a review from a team October 10, 2025 22:03
Copy link
Contributor

coderabbitai bot commented Oct 10, 2025

Walkthrough

Re-enables previously skipped integration tests in integration/tests/pricing-table.test.ts by removing environment-specific skip guards and adds explicit waits for Clerk.js to load before key interactions. Adds a new, effectively empty changeset file .changeset/thick-brooms-shave.md. No production code or API changes.

Changes

Cohort / File(s) Summary
Changeset housekeeping
.changeset/thick-brooms-shave.md
Added a new changeset file containing only YAML front-matter delimiters (---) with no substantive content.
Test enablement & synchronization
integration/tests/pricing-table.test.ts
Removed test.skip/environment-specific skip guards to run tests unconditionally and added explicit waits to ensure Clerk.js finishes loading before opening plan details, checkout, and subscription drawers. No new assertions or production logic.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant Dev as Developer
    participant TR as Test Runner
    participant PT as Pricing Table Tests
    participant Clerk as Clerk.js

    Dev->>TR: Run test suite
    rect rgb(255, 245, 235)
      note right of TR: Previous behavior (some tests skipped)
      TR->>PT: Evaluate skip guards
      alt Skip condition matched
        TR-->>PT: Skip tests
      else Not matched
        TR->>PT: Execute tests
      end
    end

    rect rgb(235, 255, 245)
      note right of TR: New behavior (guards removed, explicit waits)
      TR->>PT: Execute tests unconditionally
      PT->>Clerk: Wait for Clerk.js to load (explicit wait)
      Clerk-->>PT: Ready
      PT->>PT: Open plan details / checkout / subscription drawers
      PT-->>TR: Report pass/fail
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

I nudge the skips and hop along,
Waiting soft for Clerk's small song.
Two dashes sit, no code to bind,
Tests now wake — the run aligned.
A twitch, a thump, a rabbit grin. 🐇

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed This title clearly and concisely summarizes the primary change by indicating that end-to-end tests for the billing button in the Astro environment have been added or enabled, directly reflecting the main objective of the pull request without unnecessary detail or noise.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch elef/enable-astro-tests-for-billing

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8f27662 and 9d062e6.

📒 Files selected for processing (1)
  • integration/tests/pricing-table.test.ts (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • integration/tests/pricing-table.test.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (29)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (custom, chrome)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (sessions:staging, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (handshake, chrome)
  • GitHub Check: Integration Tests (handshake:staging, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Integration Tests (quickstart, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Static analysis
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (javascript-typescript)

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 0835ee7 and 8f27662.

📒 Files selected for processing (2)
  • .changeset/thick-brooms-shave.md (1 hunks)
  • integration/tests/pricing-table.test.ts (0 hunks)
💤 Files with no reviewable changes (1)
  • integration/tests/pricing-table.test.ts
🧰 Additional context used
📓 Path-based instructions (1)
.changeset/**

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Automated releases must use Changesets.

Files:

  • .changeset/thick-brooms-shave.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (28)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (custom, chrome)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (handshake, chrome)
  • GitHub Check: Integration Tests (handshake:staging, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Integration Tests (sessions:staging, chrome)
  • GitHub Check: Integration Tests (quickstart, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Static analysis
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (javascript-typescript)

Copy link

pkg-pr-new bot commented Oct 10, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6964

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6964

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6964

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6964

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6964

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6964

@clerk/upgrade

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

@clerk/vue

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

commit: 9d062e6

@panteliselef panteliselef merged commit 1840bf0 into main Oct 13, 2025
94 of 97 checks passed
@panteliselef panteliselef deleted the elef/enable-astro-tests-for-billing branch October 13, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants