From ab380065cd59b967a59fa1552d62cd154f55c2a8 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 20 Aug 2026 21:42:25 +0200 Subject: [PATCH] Remove the last staging-panel language from tests Generic range assertions and migrated commit tests should describe the views they still exercise. Drop stale explorer wording so failures and test intent no longer point contributors at UI that does not exist. Co-Authored-By: GitHub Copilot --- pkg/integration/components/view_driver.go | 2 +- pkg/integration/tests/commit/unstaged.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/integration/components/view_driver.go b/pkg/integration/components/view_driver.go index 7f2ebf322..c0d7e9222 100644 --- a/pkg/integration/components/view_driver.go +++ b/pkg/integration/components/view_driver.go @@ -206,7 +206,7 @@ func (self *ViewDriver) ContainsLines(matchers ...*TextMatcher) *ViewDriver { expectedContent := expectedContentFromMatchers(matchers) return false, fmt.Sprintf( - "Expected the following to be contained in the staging panel:\n-----\n%s\n-----\nBut got:\n-----\n%s\n-----\nSelected range: %d-%d", + "Expected the following lines to be contained in the selected range:\n-----\n%s\n-----\nBut got:\n-----\n%s\n-----\nSelected range: %d-%d", expectedContent, content, startIdx, diff --git a/pkg/integration/tests/commit/unstaged.go b/pkg/integration/tests/commit/unstaged.go index fbe094a30..b12c3f259 100644 --- a/pkg/integration/tests/commit/unstaged.go +++ b/pkg/integration/tests/commit/unstaged.go @@ -53,7 +53,5 @@ var Unstaged = NewIntegrationTest(NewIntegrationTestArgs{ ) t.Views().Main().IsFocused() - - // TODO: assert that the staging panel has been refreshed (it currently does not get correctly refreshed) }, })