Skip to content

Commit 36992f7

Browse files
committed
Fix dashboard tests to match blocked indicator inline styles
1 parent 2542c14 commit 36992f7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

β€Žinternal/server/dashboard_test.goβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ func TestDashboardBlockedIndicator_OpenSectionBlocked(t *testing.T) {
489489
body := getDashboard(t, srv)
490490

491491
// The lock emoji with depth must appear in the Open section row for the blocked bead.
492-
blockedRow := `<td>πŸ”’1</td><td><a href="/bead/default/` + blocked.ID + `">`
492+
blockedRow := `<td style="white-space:nowrap; padding:0.2em 0.3em">πŸ”’1</td><td><a href="/bead/default/` + blocked.ID + `">`
493493
if !strings.Contains(body, blockedRow) {
494494
t.Errorf("expected lock emoji with depth in Open section row for blocked bead, body:\n%s", body)
495495
}
@@ -516,7 +516,7 @@ func TestDashboardBlockedIndicator_NotReadySectionBlocked(t *testing.T) {
516516

517517
body := getDashboard(t, srv)
518518

519-
blockedRow := `<td>πŸ”’1</td><td><a href="/bead/default/` + blocked.ID + `">`
519+
blockedRow := `<td style="white-space:nowrap; padding:0.2em 0.3em">πŸ”’1</td><td><a href="/bead/default/` + blocked.ID + `">`
520520
if !strings.Contains(body, blockedRow) {
521521
t.Errorf("expected lock emoji with depth in Not Ready section row for blocked bead, body:\n%s", body)
522522
}
@@ -978,12 +978,12 @@ func TestDashboardDepthShownNextToLock(t *testing.T) {
978978

979979
body := getDashboard(t, srv)
980980

981-
depth1Row := `<td>πŸ”’1</td><td><a href="/bead/default/` + b.ID + `">`
981+
depth1Row := `<td style="white-space:nowrap; padding:0.2em 0.3em">πŸ”’1</td><td><a href="/bead/default/` + b.ID + `">`
982982
if !strings.Contains(body, depth1Row) {
983983
t.Errorf("expected πŸ”’1 for depth-1 bead %s", b.ID)
984984
}
985985

986-
depth2Row := `<td>πŸ”’2</td><td><a href="/bead/default/` + a.ID + `">`
986+
depth2Row := `<td style="white-space:nowrap; padding:0.2em 0.3em">πŸ”’2</td><td><a href="/bead/default/` + a.ID + `">`
987987
if !strings.Contains(body, depth2Row) {
988988
t.Errorf("expected πŸ”’2 for depth-2 bead %s", a.ID)
989989
}

0 commit comments

Comments
Β (0)