test(frontend): add real-auth Playwright e2e suite
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
<div class="mb-6 flex border-b border-sky-200/20">
|
||||
<button
|
||||
data-testid="auth-tab-login"
|
||||
onclick={() => (activeTab = 'login')}
|
||||
class="flex-1 cursor-pointer py-2 text-sm transition-colors {activeTab === 'login'
|
||||
? '-mb-px border-b border-white text-white'
|
||||
@@ -30,9 +31,9 @@
|
||||
Login
|
||||
</button>
|
||||
<button
|
||||
data-testid="auth-tab-register"
|
||||
onclick={() => (activeTab = 'register')}
|
||||
class="flex-1 cursor-pointer py-2 text-sm transition-colors {activeTab ===
|
||||
'register'
|
||||
class="flex-1 cursor-pointer py-2 text-sm transition-colors {activeTab === 'register'
|
||||
? '-mb-px border-b border-white text-white'
|
||||
: 'text-white/40 hover:text-white/60'}"
|
||||
>
|
||||
@@ -63,6 +64,7 @@
|
||||
</div>
|
||||
{#if error}<p class="text-xs text-red-400/60">{error}</p>{/if}
|
||||
<button
|
||||
data-testid="auth-submit"
|
||||
onclick={handleSubmit}
|
||||
class="mt-1 cursor-pointer rounded-sm border border-sky-200/15 px-4 py-2 text-sm text-white/40 transition-colors hover:border-sky-200/30 hover:text-white/60"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user