From 96b9ec69925147f42c1a1876c7f9f17bd3fe42d0 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 13 Nov 2026 08:20:55 +0100 Subject: [PATCH] Change OpenLinkFailure test to not use the Donate link We are going to remove the Donate link in the next commit; let the test click a URL in a commit message in the main view instead. --- pkg/integration/tests/ui/open_link_failure.go | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkg/integration/tests/ui/open_link_failure.go b/pkg/integration/tests/ui/open_link_failure.go index c4b27241e..5221f4ad9 100644 --- a/pkg/integration/tests/ui/open_link_failure.go +++ b/pkg/integration/tests/ui/open_link_failure.go @@ -12,13 +12,26 @@ var OpenLinkFailure = NewIntegrationTest(NewIntegrationTestArgs{ SetupConfig: func(config *config.AppConfig) { config.GetUserConfig().OS.OpenLink = "exit 42" }, - SetupRepo: func(shell *Shell) {}, + SetupRepo: func(shell *Shell) { + shell.EmptyCommit("https://example.com") + }, Run: func(t *TestDriver, keys config.KeybindingConfig) { - t.Views().Information().Click(0, 0) + t.Views().Commits(). + Focus() + + t.Views().Main(). + TopLines( + Contains("commit"), + Contains("Author:"), + Contains("Date:"), + Equals(""), + Equals(" https://example.com"), + ). + Click(4, 4) t.ExpectPopup().Confirmation(). Title(Equals("Error")). - Content(Equals("Failed to open URL https://github.com/sponsors/jesseduffield\n\nError: exit status 42")). + Content(Equals("Failed to open URL https://example.com\n\nError: exit status 42")). Confirm() }, })