feat(frontend): add legal pages and fix footer links (#56) #112
ci.yml
on: pull_request
Annotations
3 errors
|
Frontend (React)
Process completed with exit code 1.
|
|
src/components/character/DuplicateModal.test.tsx > DuplicateModal > user interactions > should call onConfirm with trimmed name when valid:
src/frontend/src/components/character/DuplicateModal.test.tsx#L165
AssertionError: expected "vi.fn()" to be called with arguments: [ 'NewCharacter' ]
Received:
1st vi.fn() call:
[
- "NewCharacter",
+ "Character",
]
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body
style="overflow: hidden;"
>
<div>
<div
aria-labelledby="duplicate-modal-title"
aria-modal="true"
class="fixed inset-0 z-50 flex items-center justify-center p-4"
role="dialog"
>
<div
aria-hidden="true"
class="absolute inset-0 bg-dark-950/80 backdrop-blur-sm"
/>
<div
class="relative bg-dark-800 border border-dark-600 rounded-xl p-6 max-w-md w-full shadow-2xl"
>
<div
class="flex items-center gap-4 mb-4"
>
<div
class="flex-shrink-0 w-12 h-12 rounded-full bg-gold-500/20 flex items-center justify-center"
>
<svg
aria-hidden="true"
class="w-6 h-6 text-gold-500"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
/>
</svg>
</div>
<div>
<h2
class="text-lg font-semibold text-cream-100"
id="duplicate-modal-title"
>
Dupliquer le personnage
</h2>
<p
class="text-sm text-cream-400 mt-1"
>
Créez une copie de
<span
class="text-gold-400 font-medium"
>
Arthas
</span>
</p>
</div>
</div>
<form>
<div
class="mb-6"
>
<label
class="block text-sm font-medium text-cream-200 mb-2"
for="duplicate-name"
>
Nom du nouveau personnage
</label>
<div
class="relative"
>
<input
class="w-full px-4 py-3 pr-10 bg-dark-700 border rounded-lg text-cream-100 placeholder-cream-500 focus:outline-none focus:ring-2 focus:ring-gold-500/50 transition-colors border-success-500"
id="duplicate-name"
maxlength="50"
placeholder="Entrez un nom unique"
type="text"
value="Character "
/>
<div
class="absolute right-3 top-1/2 -translate-y-1/2"
>
<svg
aria-hidden="true"
class="h-5 w-5 text-success-500"
fill="none"
stroke="currentColor"
stroke-width="3"
viewBox="0 0 24 24"
>
<path
d="M5 13l4 4L19 7"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</div>
</div>
<p
class="mt-2 text-sm text-success-400"
>
Ce nom est disponible
</p>
</div>
<div
class="flex gap-3 justify-end"
>
<button
class="inline-flex items-center justify-center font-semibold transition-all duration-200 cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gold-500 disabled:opacity-50 disabled:cursor-not-allowed bg-dark-600 text-cream-200 hover:bg-dark-500 active:bg-dark-700 border border-dark-400 px-4 py
|
|
CI Success
Process completed with exit code 1.
|