From 8f7b6c8ab6689d8933f5195a8dcd6b440f179baa Mon Sep 17 00:00:00 2001 From: oxpoe <324556608+oxpoe@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:19:35 +0700 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20pin=20TERM/COLORTERM=20di=20harness?= =?UTF-8?q?=20=E2=80=94=20kemampuan=20terminal=20deterministik=20di=20runn?= =?UTF-8?q?er=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/e2e_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 7297963..b507413 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -90,7 +90,10 @@ func startTUIEnv(t *testing.T, env ...string) *tui { t.Skip("e2e pty tidak didukung di Windows") } cmd := exec.Command(binPath) - if e := envWith(env); len(e) > 0 { + // Kunci kapabilitas terminal: tanpa ini, runner CI ber-TERM "dumb" + // membuat lipgloss menonaktifkan warna & latar → asersi highlight flaky. + base := []string{"TERM=xterm-256color", "COLORTERM=truecolor"} + if e := envWith(append(base, env...)); len(e) > 0 { cmd.Env = e } ptmx, err := pty.StartWithSize(cmd, &pty.Winsize{Rows: rows, Cols: cols})