From 6b73c78d9d65a9430d7ed342f5d0a078a228ede2 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 22:29:06 +0200 Subject: [PATCH] =?UTF-8?q?fix(19):=20update=20stale=20dashboard=20tests?= =?UTF-8?q?=20=E2=80=94=20new=20view/filter/status=20class=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/internal/web/handlers_tablos_test.go | 25 +++++++++++--------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/backend/internal/web/handlers_tablos_test.go b/backend/internal/web/handlers_tablos_test.go index ede145b..6e8f5ff 100644 --- a/backend/internal/web/handlers_tablos_test.go +++ b/backend/internal/web/handlers_tablos_test.go @@ -809,12 +809,12 @@ func TestTablosDashboard_ProgressBar(t *testing.T) { } body := rec.Body.String() - if !strings.Contains(body, "Progression:") { - t.Errorf("body missing 'Progression:' progress bar label; body: %.500s", body) - } if !strings.Contains(body, "project-card-progress-row") { t.Errorf("body missing 'project-card-progress-row' CSS class; body: %.500s", body) } + if !strings.Contains(body, "tâches") { + t.Errorf("body missing 'tâches' progress label; body: %.500s", body) + } } // ---- TestTablosDashboard_ViewToggle ---- @@ -848,11 +848,14 @@ func TestTablosDashboard_ViewToggle(t *testing.T) { } body := rec.Body.String() - if !strings.Contains(body, "view-toggle-btn") { - t.Errorf("body missing 'view-toggle-btn' toggle button class; body: %.500s", body) + if !strings.Contains(body, "view-tab") { + t.Errorf("body missing 'view-tab' toggle button class; body: %.500s", body) } - if !strings.Contains(body, `data-view="grid"`) { - t.Errorf("body missing initial data-view=\"grid\" attribute on #tablos-list; body: %.500s", body) + if !strings.Contains(body, `id="tablos-grid"`) { + t.Errorf("body missing #tablos-grid container; body: %.500s", body) + } + if !strings.Contains(body, `id="tablos-table"`) { + t.Errorf("body missing #tablos-table container; body: %.500s", body) } } @@ -897,11 +900,11 @@ func TestTablosDashboard_StatusBadge(t *testing.T) { } body := rec.Body.String() - if !strings.Contains(body, "Active") { - t.Errorf("body missing 'Active' status badge; body: %.500s", body) + if !strings.Contains(body, "Actif") { + t.Errorf("body missing 'Actif' status badge; body: %.500s", body) } - if !strings.Contains(body, "tablo-list-row") { - t.Errorf("body missing 'tablo-list-row' dual-element structure; body: %.500s", body) + if !strings.Contains(body, "tablos-table") { + t.Errorf("body missing 'tablos-table' list view container; body: %.500s", body) } }