Compare commits

..

11 commits

Author SHA1 Message Date
295c36f6e6
fix: listen on 127.0.0.1
Some checks failed
container-scan / Container Scan (pull_request) Failing after 1m35s
tests / Tests (pull_request) Failing after 1m6s
docker-build / docker (pull_request) Failing after 6m19s
2025-05-13 23:58:54 +02:00
701f900c2d
fix(tests): start server for e2e tests 2025-05-13 23:58:53 +02:00
4fcb5ef968
chore(ci): improve docker cleanup 2025-05-13 23:58:52 +02:00
887e9dd812
chore(ci): run e2e tests in workflow 2025-05-13 23:58:51 +02:00
c8a5ad1b9c
chore(ci): docker cleanup 2025-05-13 23:58:50 +02:00
69ea057f05
test(e2e): test login page 2025-05-13 23:58:49 +02:00
af28f8e7f1
chore: add testing workflow 2025-05-13 23:56:51 +02:00
b41ca153da
test: theme-picker 2025-05-13 23:56:50 +02:00
0056138a01
test: icon-button 2025-05-13 23:56:49 +02:00
8d50447cf1
test: helper functions 2025-05-13 23:56:48 +02:00
9c87a93176
test: initialize cypress e2e testing library 2025-05-13 23:56:47 +02:00
3 changed files with 15 additions and 16 deletions

View file

@ -6,15 +6,15 @@ export default function LabeledInput({
label,
placeholder,
value,
name,
...props
}: {
type: 'text' | 'email' | 'password';
label: string;
placeholder?: string;
name: string;
value?: string;
} & React.InputHTMLAttributes<HTMLInputElement>) {
const elementId = Math.random().toString(36).substring(2, 15);
return (
<div className='flex flex-col gap-1'>
<Label htmlFor={name}>{label}</Label>
@ -23,8 +23,7 @@ export default function LabeledInput({
type={type}
placeholder={placeholder}
defaultValue={value}
id={name}
name={name}
id={elementId}
{...props}
/>
</div>

View file

@ -25,15 +25,15 @@ export default function LoginForm() {
>
<LabeledInput
type='email'
label='E-Mail or Username'
placeholder='What you are known as.'
label='E-Mail'
placeholder='Enter your E-Mail'
name='email'
data-cy='email-input'
/>
<LabeledInput
type='password'
label='Password'
placeholder="Let's hope you remember it."
placeholder='Enter your Password'
name='password'
data-cy='password-input'
/>

View file

@ -2686,9 +2686,9 @@ __metadata:
linkType: hard
"caniuse-lite@npm:^1.0.30001579":
version: 1.0.30001718
resolution: "caniuse-lite@npm:1.0.30001718"
checksum: 10c0/67f9ad09bc16443e28d14f265d6e468480cd8dc1900d0d8b982222de80c699c4f2306599c3da8a3fa7139f110d4b30d49dbac78f215470f479abb6ffe141d5d3
version: 1.0.30001717
resolution: "caniuse-lite@npm:1.0.30001717"
checksum: 10c0/6c0bb1e5182fd578ebe97ee2203250849754a4e17d985839fab527ad27e125a4c4ffce3ece5505217fedf30ea0bbc17ac9f93e9ac525c0389ccba61c6e8345dc
languageName: node
linkType: hard
@ -3047,14 +3047,14 @@ __metadata:
linkType: hard
"debug@npm:4, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:^4.4.0":
version: 4.4.1
resolution: "debug@npm:4.4.1"
version: 4.4.0
resolution: "debug@npm:4.4.0"
dependencies:
ms: "npm:^2.1.3"
peerDependenciesMeta:
supports-color:
optional: true
checksum: 10c0/d2b44bc1afd912b49bb7ebb0d50a860dc93a4dd7d946e8de94abc957bb63726b7dd5aa48c18c2386c379ec024c46692e15ed3ed97d481729f929201e671fcd55
checksum: 10c0/db94f1a182bf886f57b4755f85b3a74c39b5114b9377b7ab375dc2cfa3454f09490cc6c30f829df3fc8042bc8b8995f6567ce5cd96f3bc3688bd24027197d9de
languageName: node
linkType: hard
@ -5617,11 +5617,11 @@ __metadata:
linkType: hard
"napi-postinstall@npm:^0.2.2":
version: 0.2.4
resolution: "napi-postinstall@npm:0.2.4"
version: 0.2.3
resolution: "napi-postinstall@npm:0.2.3"
bin:
napi-postinstall: lib/cli.js
checksum: 10c0/e8c357d7e27848c4af7becf2796afff245a2fc8ba176e1b133410bb1c9934a66d4bc542d0c9f04c73b0ba34ee0486b30b6cd1c62ed3aa36797d394200c9a2a8b
checksum: 10c0/125cb677d59f284e61cd9b4cd840cf735edd4c325ffc54af4fad16c8726642ffeddaa63c5ca3533b5e7023be4d8e9ff223484c5eea2a8efe2e2498fd063cabbd
languageName: node
linkType: hard