From 082a5bb68c8fd391d1963e6ef309e9459a1abe8b Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Thu, 21 May 2026 23:52:09 +0200 Subject: [PATCH] Strip orphan straight-quote pairings in JSX descriptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The German „X" markers in the description prop combined a curly „ (U+201E) with a straight " (U+0022). The straight quote prematurely terminated the JavaScript string inside the JSX expression. Removing both markers around the example text keeps the description readable and unambiguously valid JSX. Test selector for the UnavailableWindow description updated to match the new wording. Co-Authored-By: Claude Opus 4.7 (1M context) --- studio-v2/app/stundenplan/_components/regeln/ClassEditors.tsx | 2 +- studio-v2/app/stundenplan/_components/regeln/RoomEditors.tsx | 4 ++-- .../_components/regeln/SubjectMaxConsecutiveEditor.tsx | 2 +- .../_components/regeln/SubjectPreferredPeriodEditor.tsx | 2 +- .../stundenplan/_components/regeln/SubjectSimpleEditors.tsx | 2 +- .../_components/regeln/TeacherExclusionEditors.tsx | 4 ++-- .../stundenplan/_components/regeln/TeacherMaxHoursEditors.tsx | 2 +- .../_components/regeln/TeacherUnavailableDayEditor.tsx | 2 +- .../_components/regeln/TeacherUnavailableWindowEditor.tsx | 2 +- studio-v2/e2e/stundenplan.spec.ts | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/studio-v2/app/stundenplan/_components/regeln/ClassEditors.tsx b/studio-v2/app/stundenplan/_components/regeln/ClassEditors.tsx index 931eaf2..6c53368 100644 --- a/studio-v2/app/stundenplan/_components/regeln/ClassEditors.tsx +++ b/studio-v2/app/stundenplan/_components/regeln/ClassEditors.tsx @@ -32,7 +32,7 @@ export function ClassMaxHoursDayEditor() { { test('switching to UnavailableWindow editor swaps the right pane', async ({ page }) => { await page.getByRole('button', { name: 'Zeitfenster nicht verfuegbar' }).click() await expect(page.getByTestId('teacher-unavailable-window-editor')).toBeVisible() - await expect(page.getByText('„Lehrer Z Dienstags 13:00–17:00 nicht".')).toBeVisible() + await expect(page.getByText('Lehrer Z Dienstags 13:00–17:00 nicht.')).toBeVisible() }) test('switching to SubjectMaxConsecutive editor works', async ({ page }) => {