zwischenparkung

This commit is contained in:
th committed 2026-04-12 16:09:34 +02:00
1 parent 22a43fdef7
commit ee192a15e7
15 files changed
+5365 -9

No files matched your search

+12 -3
View File
@@ -9,7 +9,10 @@ describe('Gallery', () => {
it('opens on button click', async () => {
click('#gallery-btn');
await sleep(250);
for (let i = 0; i < 20; i++) {
if ($('#gallery')?.classList.contains('open')) break;
await sleep(100);
}
expect($('#gallery')).toBeVisible();
});
@@ -19,13 +22,19 @@ describe('Gallery', () => {
it('shows image count', async () => {
click('#gallery-btn');
await sleep(250);
for (let i = 0; i < 20; i++) {
if ($('#gallery')?.classList.contains('open')) break;
await sleep(100);
}
expect($('#gallery-count')).toExist();
});
it('closes on close button', async () => {
click('#gallery-btn');
await sleep(200);
for (let i = 0; i < 20; i++) {
if ($('#gallery')?.classList.contains('open')) break;
await sleep(100);
}
click('#gallery-close');
await sleep(150);
expect($('#gallery')).toBeHidden();