Skip to content

Commit 12762ca

Browse files
ralyodioclaude
andcommitted
fix(ci): update join test for 'Watch for free' button + format pricing
The 'Watch for free' rename broke 4 guest-flow tests in join/[joinCode]/ page.test.tsx (they queried the old 'Join Session' name); my local run was turbo-cached so it missed them. Updated the guest-flow queries + ran prettier on pricing/page.tsx. Full web suite 568 green fresh. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 52c53f6 commit 12762ca

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎apps/web/src/app/join/[joinCode]/page.test.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ describe('JoinPage', () => {
149149
});
150150

151151
await waitFor(() => {
152-
expect(screen.getByRole('button', { name: 'Join Session' })).toBeInTheDocument();
152+
expect(screen.getByRole('button', { name: 'Watch for free' })).toBeInTheDocument();
153153
});
154154

155-
expect(screen.getByRole('button', { name: 'Join Session' })).toBeDisabled();
155+
expect(screen.getByRole('button', { name: 'Watch for free' })).toBeDisabled();
156156
});
157157

158158
it('enables join button when name is entered', async () => {
@@ -169,7 +169,7 @@ describe('JoinPage', () => {
169169

170170
await user.type(screen.getByLabelText('Your Name'), 'Test User');
171171

172-
expect(screen.getByRole('button', { name: 'Join Session' })).toBeEnabled();
172+
expect(screen.getByRole('button', { name: 'Watch for free' })).toBeEnabled();
173173
});
174174

175175
it('calls join API and redirects on success', async () => {
@@ -208,7 +208,7 @@ describe('JoinPage', () => {
208208
});
209209

210210
await user.type(screen.getByLabelText('Your Name'), 'Test User');
211-
await user.click(screen.getByRole('button', { name: 'Join Session' }));
211+
await user.click(screen.getByRole('button', { name: 'Watch for free' }));
212212

213213
// Guests are redirected to the public view page with their participant ID
214214
await waitFor(() => {
@@ -252,7 +252,7 @@ describe('JoinPage', () => {
252252
});
253253

254254
await user.type(screen.getByLabelText('Your Name'), 'Test User');
255-
await user.click(screen.getByRole('button', { name: 'Join Session' }));
255+
await user.click(screen.getByRole('button', { name: 'Watch for free' }));
256256

257257
await waitFor(() => {
258258
expect(screen.getByText('Session is full')).toBeInTheDocument();

‎apps/web/src/app/pricing/page.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ export default function PricingPage() {
534534
<h3 className="font-semibold text-gray-900">How many people can watch my room?</h3>
535535
<p className="mt-2 text-gray-600">
536536
Concurrent listeners per room scale with your plan: Free {CAP.free}, Plus{' '}
537-
{CAP.plus}, Pro {CAP.pro}, Team {CAP.team.toLocaleString()}. On top of that, public
538-
lives can be watched for free by unlimited guests with no account.
537+
{CAP.plus}, Pro {CAP.pro}, Team {CAP.team.toLocaleString()}. On top of that,
538+
public lives can be watched for free by unlimited guests with no account.
539539
</p>
540540
</div>
541541

0 commit comments

Comments
 (0)