fix(19): update stale dashboard tests — new view/filter/status class names
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a575ab93c6
commit
6b73c78d9d
1 changed files with 14 additions and 11 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue