f086_Zusatz-Edit-der-Namen #34

Merged
mina merged 13 commits from f086_Zusatz-Edit-der-Namen into development 2025-09-24 12:40:12 +02:00
Showing only changes of commit 011c07b753 - Show all commits

View File

@@ -1,15 +1,12 @@
import { fireEvent, render, screen } from '@testing-library/svelte';
import { describe, expect, it, test, vi } from "vitest";
import { describe, expect, it, test, vi } from 'vitest';
import NameItemEditor from '$lib/components/NameItemEditor.svelte';
import { baseData } from './fixtures';
const testCrimesListIndex = 0;
const testItem = baseData.crimesList[testCrimesListIndex];
const testCurrentName = testItem.name;
const testLocalName = 'Fall-C'
const testLocalName = 'Fall-C';
describe('NameItemEditor - Funktionalität', () => {
const onSave = vi.fn();
@@ -18,9 +15,10 @@ describe('NameItemEditor - Funktionalität', () => {
list: baseData.crimesList,
currentName: testCurrentName,
onSave,
onDelete}
onDelete
};
test.todo('FocusIn nach Klick auf edit')
test.todo('FocusIn nach Klick auf edit');
it('zeigt initial Edit/Delete Buttons und aktuellen Namen', () => {
render(NameItemEditor, { props: baseProps });