diff --git a/e2e/auth.spec.ts b/e2e/auth.spec.ts
index e57fa7d1..2be48238 100644
--- a/e2e/auth.spec.ts
+++ b/e2e/auth.spec.ts
@@ -8,7 +8,7 @@ test.describe('Authentication', () => {
await expect(page.getByLabel('Username')).toBeVisible();
await expect(page.getByLabel('Email')).toBeVisible();
await expect(page.getByLabel('Password')).toBeVisible();
- await expect(page.getByRole('button', { name: 'Register' })).toBeVisible();
+ await expect(page.getByRole('button', { name: 'Create account' })).toBeVisible();
});
test('register new user shows success message', async ({ page }) => {
@@ -17,11 +17,10 @@ test.describe('Authentication', () => {
await page.getByLabel('Username').fill(`user_${tag}`);
await page.getByLabel('Email').fill(`${tag}@commonly.test`);
await page.getByLabel('Password').fill('TestPass123!');
- await page.getByRole('button', { name: 'Register' }).click();
+ await page.getByRole('button', { name: 'Create account' }).click();
- // Success message from res.data.message — exact text depends on backend
- // but it must be non-error text visible on the page
- await expect(page.locator('.MuiTypography-root').filter({ hasNotText: /Register|Create|Start/ }).last()).toBeVisible({ timeout: 8000 });
+ // v2 register swaps to a success state with a "Continue to sign in" CTA
+ await expect(page.getByRole('button', { name: 'Continue to sign in' })).toBeVisible({ timeout: 8000 });
});
test('login with wrong password shows error', async ({ page }) => {
diff --git a/frontend/src/v2/V2App.tsx b/frontend/src/v2/V2App.tsx
index 83ab91fd..3e19383f 100644
--- a/frontend/src/v2/V2App.tsx
+++ b/frontend/src/v2/V2App.tsx
@@ -6,7 +6,7 @@ import V2FeaturePage from './components/V2FeaturePage';
import V2YourTeamPage from './components/V2YourTeamPage';
import V2InviteRedeem from './components/V2InviteRedeem';
import { useAuth } from '../context/AuthContext';
-import Register from '../components/Register';
+import V2Register from './components/V2Register';
import RegistrationInviteRequired from '../components/RegistrationInviteRequired';
import VerifyEmail from '../components/VerifyEmail';
import DiscordCallback from '../components/DiscordCallback';
@@ -125,7 +125,7 @@ const V2App: React.FC = () => {